diff options
author | Adam Heath <doogie@debian.org> | 2001-05-29 00:04:25 +0000 |
---|---|---|
committer | Adam Heath <doogie@debian.org> | 2001-05-29 00:04:25 +0000 |
commit | 36c97ef56afb30f066be64377b25f2a0f4a27574 (patch) | |
tree | 0f0ea04a0398a8f3928fb91e6d1a687e775561a3 /scripts/dpkg-divert.pl | |
parent | 5f3461830c91eb5f3e78657a3e547429a1c38973 (diff) | |
download | dpkg-36c97ef56afb30f066be64377b25f2a0f4a27574.tar.gz |
Fix cleanup of .dpkg-devert.tmp files.
Diffstat (limited to 'scripts/dpkg-divert.pl')
-rwxr-xr-x | scripts/dpkg-divert.pl | 4 |
1 files changed, 2 insertions, 2 deletions
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"); } } |