The following commit has been merged in the master branch:
commit 1c18298e7510ffb2dab453293528ecd219d6a2b2
Author: Guillem Jover <[email protected]>
Date: Sun Jun 14 20:34:22 2009 +0200
dpkg-scanpackages: Use info instead of ad-hoc printing
Redirect it to STDERR to not pollute STDOUT where the Packages file is
being outputted.
diff --git a/scripts/dpkg-scanpackages.pl b/scripts/dpkg-scanpackages.pl
index 7aa5345..207271f 100755
--- a/scripts/dpkg-scanpackages.pl
+++ b/scripts/dpkg-scanpackages.pl
@@ -13,6 +13,9 @@ use Dpkg::Version qw(compare_versions);
textdomain("dpkg-dev");
+# Do not pollute STDOUT with info messages
+report_options(info_fh => \*STDERR);
+
my (@samemaint, @changedmaint);
my @spuriousover;
my %packages;
@@ -273,4 +276,5 @@ if (@spuriousover) {
warning(" %s", join(' ', @spuriousover));
}
-printf(STDERR _g(" Wrote %s entries to output Packages file.")."\n",
$records_written) || die $!;
+info(_g("Wrote %s entries to output Packages file."), $records_written);
+
--
dpkg's main repository
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]