]> err.no Git - dpkg/commit
Dpkg::Changelog: Use Dpkg::Fields for field handling
authorFrank Lichtenheld <djpig@debian.org>
Sun, 13 Jan 2008 15:03:39 +0000 (16:03 +0100)
committerFrank Lichtenheld <djpig@debian.org>
Sun, 13 Jan 2008 15:03:39 +0000 (16:03 +0100)
commit7d81f1cd37b6985c7416a92efa3f9d0374c3655b
treede9d23b1d9241a1bc386ab66e2eaa2d468441b30
parent5ab947df77388732f7a7b30cd07e8065c1a71c34
Dpkg::Changelog: Use Dpkg::Fields for field handling

* scripts/Dpkg/Changelog.pm: Replace all field hashes
with Dpkg::Changelog::Entry objects.
(Dpkg::Changelog::Entry): Base on Dpkg::Fields::Object.
(data2rfc822): Use Dpkg::Fields::Object->output and fix
handling of user-defined fields.
(data2rfc822_mult): Merge into data2rfc822 (autodetect
whether the argument is an object or an array of object).
* scripts/Dpkg/Changelog/Debian.pm: Adapt for
Dpkg::Changelog::Entry changes.
* scripts/t/600_Dpkg_Changelog.t: Likewise.
ChangeLog
scripts/Dpkg/Changelog.pm
scripts/Dpkg/Changelog/Debian.pm
scripts/t/600_Dpkg_Changelog.t