Forráskód Böngészése

fix warning when trying to remove a non-existing statoverride

Wichert Akkerman 25 éve
szülő
commit
75ec36a7ad
3 módosított fájl, 8 hozzáadás és 1 törlés
  1. 5 0
      ChangeLog
  2. 2 0
      debian/changelog
  3. 1 1
      scripts/dpkg-statoverride.pl

+ 5 - 0
ChangeLog

@@ -1,3 +1,8 @@
+Tue Dec 12 16:27:59 CET 2000 Wichert Akkerman <wakkerma@debian.org>
+
+  * scripts/dpkg-statoverride.pl: fix warning when trying to remove a
+    non-existing override.
+
 Mon Dec 11 01:10:19 CET 2000 Wichert Akkerman <wakkerma@debian.org>
 
   * debian/control: add gettext to the build-depends

+ 2 - 0
debian/changelog

@@ -11,6 +11,8 @@ dpkg (1.8.0) unstable; urgency=low
   * Add Linux S/390 support. Closes: Bug#79063
   * Using libz to decompress data instead of calling gzip
   * Add gettext to build-depends
+  * Fix warning when trying to remove a non-existing statoverride.
+    Closes: Bug#79352
 
  -- Wichert Akkerman <wakkerma@debian.org>  UNRELEASED
 

+ 1 - 1
scripts/dpkg-statoverride.pl

@@ -128,7 +128,7 @@ if ($mode eq "add") {
 	@ARGV==1 || &badusage("--remove needs one arguments");
 	$file=$ARGV[0];
 	if (not defined $owner{$file}) {
-		print "No override present.";
+		print STDERR "No override present.\n";
 		exit(0);
 	}
 	delete $owner{$file};