The following commit has been merged in the master branch:
commit ba2706754570efecb9cfba05ebcf2765d222c8a2
Author: Raphael Hertzog <[email protected]>
Date: Tue May 19 16:41:47 2009 +0200
dpkg-scanpackages: be less annoying with warning about overrides
If the user doesn't specify an override file, then he doesn't care
about the fact that all packages are missing from the (non-existing)
override file. Disable the warning in this case.
In other cases, when the override file is explicitely given, it's a
normal feature that the packages missing from it are listed; exactly like
other weirdness are reported (incorrect maintainer info, spurious override
entries).
Based-on-patch-by: Piotr Engelking <[email protected]>
diff --git a/debian/changelog b/debian/changelog
index 8a9d13a..94506f6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -93,6 +93,9 @@ dpkg (1.15.1) UNRELEASED; urgency=low
* Update dpkg-parsechangelog's documentation to make it clearer that spaces
are not allowed between single characters options and their values.
Closes: #494883
+ * Don't let dpkg-scanpackages complain about missing overrides when
+ no overrides file has been given. Closes: #468106
+ Thanks to Piotr Engelking for the patch.
[ Guillem Jover ]
* Fix typo in dpkg output (‘unexecpted’ → ‘unexpected’). Closes: #519082
diff --git a/scripts/dpkg-scanpackages.pl b/scripts/dpkg-scanpackages.pl
index 10eeb7f..d2189d5 100755
--- a/scripts/dpkg-scanpackages.pl
+++ b/scripts/dpkg-scanpackages.pl
@@ -252,7 +252,7 @@ my @missingover=();
my $records_written = 0;
for my $p (sort keys %packages) {
- if (not defined($overridden{$p})) {
+ if (defined($override) and not defined($overridden{$p})) {
push(@missingover,$p);
}
for my $package (@{$packages{$p}}) {
--
dpkg's main repository
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]