diff options
Diffstat (limited to 't/Test/Sbotools.pm')
-rw-r--r-- | t/Test/Sbotools.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/t/Test/Sbotools.pm b/t/Test/Sbotools.pm index 7c6d98b..8be5536 100644 --- a/t/Test/Sbotools.pm +++ b/t/Test/Sbotools.pm @@ -62,11 +62,11 @@ sub set_repo { _set_config('REPO', @_); if (-e "/usr/sbo/repo" and not $repo) { $repo = 1; - rename '/usr/sbo/repo', "$RealBin/repo.backup"; + system('mv', '/usr/sbo/repo', "/tmp/repo.backup"); # if $sbt is true, the SLACKBUILDS.TXT has been created by # make_slackbuilds_txt and should not be backed up - if ($sbt) { system('rm', "$RealBin/repo.backup/SLACKBUILDS.TXT"); } + if ($sbt) { system('rm', "/tmp/repo.backup/SLACKBUILDS.TXT"); } } } @@ -142,7 +142,7 @@ END { } if ($repo) { system(qw! rm -rf /usr/sbo/repo !); - rename "$RealBin/repo.backup", "/usr/sbo/repo"; + system('mv', "/tmp/repo.backup", '/usr/sbo/repo'); } if ($tags) { system(qw!rm -rf !, $tags_txt); |