summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rwxr-xr-xscripts/dpkg-divert.pl4
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index f6c822b20..39a4b9e2a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Mon May 28 19:02:52 CDT 2001 Adam Heath <doogie@debian.org>
+
+ * scripts/dpkg-divert.pl: Fix cleanup of .dpkg-devert.tmp files.
+
Mon May 28 16:40:19 CDT 2001 Adam Heath <doogie@debian.org>
* po/it.po: Updated.
diff --git a/scripts/dpkg-divert.pl b/scripts/dpkg-divert.pl
index b71e0bc9b..d0aca91c2 100755
--- a/scripts/dpkg-divert.pl
+++ b/scripts/dpkg-divert.pl
@@ -222,10 +222,10 @@ sub checkrename {
foreach $file ($rsrc,$rdest) {
open (TMP, ">> ${file}.dpkg-devert.tmp") || $! == ENOENT ||
&quit("error checking \`$file': $!");
- close TMP;
- if ($! == ENOENT) {
+ if ($!) {
$dorename = !$dorename;
} else {
+ close TMP;
unlink ("${file}.dpkg-devert.tmp");
}
}