296 |
|
# Get list of files in config dir: |
297 |
|
my $configcache = {}; |
298 |
|
my %configfiles = map { -f $_ && |
299 |
< |
$_ =~ m|$ENV{LOCALTOP}/$ENV{SCRAM_CONFIGDIR}.*?$| |
299 |
> |
$_ =~ m|\Q$ENV{LOCALTOP}\E/$ENV{SCRAM_CONFIGDIR}.*?$| |
300 |
|
? ($_ => [ (stat(_))[9] ]) : () } keys %{$self->{DIRCACHE}}; |
301 |
|
|
302 |
|
# Also add ToolCache.db to the cache: FIXME: should probably use aglob here so |
562 |
|
# storing those that are relevant to an array: |
563 |
|
foreach my $path (keys %{$self->{DIRCACHE}}) |
564 |
|
{ |
565 |
< |
if ( ! -d $path && $path != m|$ENV{LOCALTOP}/$ENV{SCRAM_CONFIGDIR}.*?$|) |
565 |
> |
if ( ! -d $path && $path != m|\Q$ENV{LOCALTOP}\E/$ENV{SCRAM_CONFIGDIR}.*?$|) |
566 |
|
{ |
567 |
|
$self->logmsg("SCRAM: $path no longer exists. Clearing from cache.\n"); |
568 |
|
$self->cachestatus(1); |