]> err.no Git - dpkg/commitdiff
Fix ENOENT issues
authorWichert Akkerman <wakkerma@debian.org>
Thu, 30 Nov 2000 02:40:38 +0000 (02:40 +0000)
committerWichert Akkerman <wakkerma@debian.org>
Thu, 30 Nov 2000 02:40:38 +0000 (02:40 +0000)
scripts/dpkg-statoverride.pl

index 90b4267d32520afc00593cf865ec4ddae385e3ef..6b20e431acddb0ab8a91e88b33ede063db1ecf7d 100755 (executable)
@@ -1,5 +1,8 @@
 #! /usr/bin/perl
 
+use POSIX;
+use POSIX qw(:errno_h :signal_h);
+
 $admindir= "/var/lib/dpkg"; # This line modified by Makefile
 $version= '1.3.0'; # This line modified by Makefile
 
@@ -213,9 +216,9 @@ sub WriteOverrides {
        close(SO);
        chmod(0644, "$admindir/statoverride-new");
        unlink("$admindir/statoverride-old") ||
-               $! == &ENOENT || &quit("error removing statoverride-old: $!");
+               $! == ENOENT || &quit("error removing statoverride-old: $!");
        link("$admindir/statoverride","$admindir/statoverride-old") ||
-               $! == &ENOENT || &quit("error creating new statoverride-old: $!");
+               $! == ENOENT || &quit("error creating new statoverride-old: $!");
        rename("$admindir/statoverride-new","$admindir/statoverride")
                || &quit("error installing new statoverride: $!");
 }