aboutsummaryrefslogtreecommitdiff
path: root/t/Test
diff options
context:
space:
mode:
Diffstat (limited to 't/Test')
-rw-r--r--t/Test/Sbotools.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/t/Test/Sbotools.pm b/t/Test/Sbotools.pm
index dd0ff20..ec001b2 100644
--- a/t/Test/Sbotools.pm
+++ b/t/Test/Sbotools.pm
@@ -59,7 +59,7 @@ sub set_repo {
_set_config('REPO', @_);
if (-e "/usr/sbo/repo" and not $repo) {
$repo = 1;
- system(qw! mv /usr/sbo/repo !, "$RealBin/repo.backup");
+ rename '/usr/sbo/repo', "$RealBin/repo.backup";
# if $sbt is true, the SLACKBUILDS.TXT has been created by
# make_slackbuilds_txt and should not be backed up
@@ -117,7 +117,7 @@ sub replace_tags_txt {
if (-e $tags_txt) {
if (! $tags) {
$tags = 2;
- system('mv', $tags_txt, "$tags_txt.bak");
+ rename $tags_txt, "$tags_txt.bak";
}
} else {
$tags = 1 if $tags == 0;
@@ -141,11 +141,11 @@ END {
system(qw!rm -rf !, $tags_txt);
}
if ($tags == 2) {
- system('mv', "$tags_txt.bak", $tags_txt);
+ rename "$tags_txt.bak", $tags_txt;
}
if ($repo) {
system(qw! rm -rf /usr/sbo/repo !);
- system('mv', "$RealBin/repo.backup", "/usr/sbo/repo");
+ rename "$RealBin/repo.backup", "/usr/sbo/repo";
}
}