projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
try to prevent $myalias calls being set to nodes
[spider.git]
/
perl
/
DXDupe.pm
diff --git
a/perl/DXDupe.pm
b/perl/DXDupe.pm
index a5bb8a1b9cd762f9d4bdd0e1e2208f07743ba244..5b288d1f87b1b3f1d04f8f99caf8c485d3d0127f 100644
(file)
--- a/
perl/DXDupe.pm
+++ b/
perl/DXDupe.pm
@@
-19,19
+19,11
@@
$default = 48*24*60*60;
$lasttime = 0;
$fn = "$main::data/dupefile";
$lasttime = 0;
$fn = "$main::data/dupefile";
-use vars qw($VERSION $BRANCH);
-($VERSION, $BRANCH) = dxver(q$Revision$);
-
sub init
{
sub init
{
+ unlink $fn;
$dbm = tie (%d, 'DB_File', $fn);
$dbm = tie (%d, 'DB_File', $fn);
- unless ($dbm) {
- eval { untie %d };
- dbg("Dupefile $fn corrupted, removing...");
- unlink $fn;
- $dbm = tie (%d, 'DB_File', $fn) or confess "can't open dupe file: $fn ($!)";
- confess "cannot open $fn $!" unless $dbm;
- }
+ confess "cannot open $fn $!" unless $dbm;
}
sub finish
}
sub finish
@@
-39,6
+31,7
@@
sub finish
undef $dbm;
untie %d;
undef %d;
undef $dbm;
untie %d;
undef %d;
+ unlink $fn;
}
sub check
}
sub check