Commit c915c269 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Minor fixes to debugging code.

parent b2322b88
...@@ -2841,7 +2841,7 @@ sub CleanLogFiles($) ...@@ -2841,7 +2841,7 @@ sub CleanLogFiles($)
} }
mysystem("/bin/rm -f @delete") == 0 mysystem("/bin/rm -f @delete") == 0
or return -1; or return -1;
mysystem("/bin/rm -rf ${workdir}/vstate.* ${workdir}/pstate.*") == 0 mysystem("/bin/rm -rf ${workdir}/vstate* ${workdir}/pstate*") == 0
or return -1; or return -1;
return 0; return 0;
...@@ -3234,8 +3234,12 @@ sub SaveBackupState($) ...@@ -3234,8 +3234,12 @@ sub SaveBackupState($)
my $pstateDir = $workdir . "/pstate"; my $pstateDir = $workdir . "/pstate";
my $vstateDir = $workdir . "/vstate"; my $vstateDir = $workdir . "/vstate";
system("/bin/rm -rf ${pstateDir}-prev")
if (-e "${pstateDir}-prev");
system("/bin/cp -Rfp $pstateDir ${pstateDir}-prev") system("/bin/cp -Rfp $pstateDir ${pstateDir}-prev")
if (-e $pstateDir); if (-e $pstateDir);
system("/bin/rm -rf ${vstateDir}-prev")
if (-e "${vstateDir}-prev");
system("/bin/cp -Rfp $vstateDir ${vstateDir}-prev") system("/bin/cp -Rfp $vstateDir ${vstateDir}-prev")
if (-e $vstateDir); if (-e $vstateDir);
......
...@@ -1584,7 +1584,7 @@ sub cleanup() ...@@ -1584,7 +1584,7 @@ sub cleanup()
# #
if (1) { if (1) {
# Maybe use a feature? # Maybe use a feature?
system("/bin/cp -Rfp $workdir ${workdir}-failed"); system("/bin/cp -Rfp $workdir/ ${workdir}-failed");
} }
else { else {
system("/bin/rm -rf ${workdir}-failed"); system("/bin/rm -rf ${workdir}-failed");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment