projects
/
BackupPC.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* Changes in preparation for 3.2.0beta1...
[BackupPC.git]
/
lib
/
BackupPC
/
Storage
/
Text.pm
diff --git
a/lib/BackupPC/Storage/Text.pm
b/lib/BackupPC/Storage/Text.pm
index
d9be3c3
..
0f22932
100644
(file)
--- a/
lib/BackupPC/Storage/Text.pm
+++ b/
lib/BackupPC/Storage/Text.pm
@@
-274,25
+274,25
@@
sub ConfigPath
sub ConfigDataRead
{
sub ConfigDataRead
{
- my($s, $host) = @_;
+ my($s, $host
, $prevConfig
) = @_;
my($ret, $mesg, $config, @configs);
#
# TODO: add lock
#
my($ret, $mesg, $config, @configs);
#
# TODO: add lock
#
- my $conf = {};
+ my $conf =
$prevConfig ||
{};
my $configPath = $s->ConfigPath($host);
push(@configs, $configPath) if ( -f $configPath );
foreach $config ( @configs ) {
my $configPath = $s->ConfigPath($host);
push(@configs, $configPath) if ( -f $configPath );
foreach $config ( @configs ) {
- %Conf =
()
;
+ %Conf =
%$conf
;
if ( !defined($ret = do $config) && ($! || $@) ) {
$mesg = "Couldn't open $config: $!" if ( $! );
$mesg = "Couldn't execute $config: $@" if ( $@ );
$mesg =~ s/[\n\r]+//;
return ($mesg, $conf);
}
if ( !defined($ret = do $config) && ($! || $@) ) {
$mesg = "Couldn't open $config: $!" if ( $! );
$mesg = "Couldn't execute $config: $@" if ( $@ );
$mesg =~ s/[\n\r]+//;
return ($mesg, $conf);
}
- %$conf =
( %$conf, %Conf )
;
+ %$conf =
%Conf
;
}
#
}
#