* Bug fix: deleting the old links didn't work properly.

This commit is contained in:
Eelco Dolstra 2003-04-25 15:20:05 +00:00
parent fcc5ae151b
commit d6d930a975

View file

@ -61,6 +61,6 @@ rename($tmplink, $current) or die "cannot rename $tmplink";
if (!$keep && defined $oldlink) {
print "deleting old $oldlink\n";
unlink $tmplink || print "cannot delete $tmplink";
unlink "$tmplink.hash" || print "cannot delete $tmplink.hash";
unlink($oldlink) == 1 || print "cannot delete $oldlink\n";
unlink("$oldlink.hash") == 1 || print "cannot delete $oldlink.hash\n";
}