From: Wichert Akkerman Date: Tue, 12 Dec 2000 16:34:07 +0000 (+0000) Subject: fix warning when trying to remove a non-existing statoverride X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75ec36a7ad5c2b638b2813336d641987aeb50c7d;p=dpkg fix warning when trying to remove a non-existing statoverride --- diff --git a/ChangeLog b/ChangeLog index 4e8d9c98..4016293e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Tue Dec 12 16:27:59 CET 2000 Wichert Akkerman + + * scripts/dpkg-statoverride.pl: fix warning when trying to remove a + non-existing override. + Mon Dec 11 01:10:19 CET 2000 Wichert Akkerman * debian/control: add gettext to the build-depends diff --git a/debian/changelog b/debian/changelog index ca2c1daf..1d6a9ffe 100644 --- a/debian/changelog +++ b/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 UNRELEASED diff --git a/scripts/dpkg-statoverride.pl b/scripts/dpkg-statoverride.pl index b89a9547..20cdad14 100755 --- a/scripts/dpkg-statoverride.pl +++ b/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};