]> err.no Git - dpkg/commit
Dpkg::Fields::Object: Support filehandles and strings for output and dump
authorFrank Lichtenheld <djpig@debian.org>
Sun, 13 Jan 2008 17:07:15 +0000 (18:07 +0100)
committerFrank Lichtenheld <djpig@debian.org>
Sun, 13 Jan 2008 17:07:15 +0000 (18:07 +0100)
commitebe27f2ad5e1438324c6f87021aa24b3bce8f9df
tree05e49a7220551f0f3c135ee21cadb69fe034460f
parentaded1d7a4a7c5acfef5f002fb6a3e4f7b0477eed
Dpkg::Fields::Object: Support filehandles and strings for output and dump

* scripts/Dpkg/Fields.pm (dump): Allow to omit the
filehandle argument. If the function is called in
non-void context, also remove the printed string
to the caller. Together this avoids having to fiddle
with filehandles if the caller doesn't want to.
(output): Likewise.
* scripts/Dpkg/Changelog.pm (data2rfc822): Simplify
using this new behaviour.
ChangeLog
scripts/Dpkg/Changelog.pm
scripts/Dpkg/Fields.pm