projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
set def sendverity=0, some hostname changes
[spider.git]
/
perl
/
DXHash.pm
diff --git
a/perl/DXHash.pm
b/perl/DXHash.pm
index 1e3c833e0dfa5d7d7b1f842d426a38d322645d97..cf9f05211c202ff10cd42798f22542822921dd36 100644
(file)
--- a/
perl/DXHash.pm
+++ b/
perl/DXHash.pm
@@
-8,7
+8,7
@@
# Things entered into the list are always upper
# cased.
#
# Things entered into the list are always upper
# cased.
#
-# The files that are created live in /spider/
data
+# The files that are created live in /spider/
local_data (was data)
#
# Dunno why I didn't do this earlier but heyho..
#
#
# Dunno why I didn't do this earlier but heyho..
#
@@
-28,7
+28,10
@@
use strict;
sub new
{
my ($pkg, $name) = @_;
sub new
{
my ($pkg, $name) = @_;
- my $s = readfilestr($main::data, $name);
+
+ # move existing file
+ localdata_mv($name);
+ my $s = readfilestr($main::local_data, $name);
my $self = undef;
$self = eval $s if $s;
dbg("error in reading $name in DXHash $@") if $@;
my $self = undef;
$self = eval $s if $s;
dbg("error in reading $name in DXHash $@") if $@;
@@
-39,7
+42,7
@@
sub new
sub put
{
my $self = shift;
sub put
{
my $self = shift;
- writefilestr($main::data, $self->{name}, undef, $self);
+ writefilestr($main::
local_
data, $self->{name}, undef, $self);
}
sub add
}
sub add