aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Guldstrand <andreas.guldstrand@gmail.com>2015-12-18 00:36:02 +0100
committerAndreas Guldstrand <andreas.guldstrand@gmail.com>2015-12-23 16:21:02 +0100
commitc8faa619a19d528765ca44ee72a9888413a73045 (patch)
tree6eb00a7c3fa5b0f7f56ef62e7a2ea516d5da4f8f
parent2e773e67617e3ee3b9d30ed2365579ef18aa3a29 (diff)
downloadsbotools2-c8faa619a19d528765ca44ee72a9888413a73045.tar.xz
Need to make sure path exists before creating SLACKBUILDS.TXT
-rwxr-xr-xt/env.t2
-rwxr-xr-xt/install.t2
-rwxr-xr-xt/remove.t2
3 files changed, 3 insertions, 3 deletions
diff --git a/t/env.t b/t/env.t
index 14cb865..94eec20 100755
--- a/t/env.t
+++ b/t/env.t
@@ -44,7 +44,7 @@ sub make_slackbuilds_txt {
if ($_[0]) {
if ($made) { return system(qw!rm -rf!, $fname); }
} else {
- if (not -e $fname) { $made = 1; system('touch', $fname); }
+ if (not -e $fname) { $made = 1; system('mkdir', '-p', '/usr/sbo/repo'); system('touch', $fname); }
}
}
diff --git a/t/install.t b/t/install.t
index cfdd415..d022faa 100755
--- a/t/install.t
+++ b/t/install.t
@@ -41,7 +41,7 @@ sub make_slackbuilds_txt {
if ($_[0]) {
if ($made) { return system(qw!rm -rf!, $fname); }
} else {
- if (not -e $fname) { $made = 1; system('touch', $fname); }
+ if (not -e $fname) { $made = 1; system('mkdir', '-p', '/usr/sbo/repo'); system('touch', $fname); }
}
}
diff --git a/t/remove.t b/t/remove.t
index e2c3672..a155cdc 100755
--- a/t/remove.t
+++ b/t/remove.t
@@ -41,7 +41,7 @@ sub make_slackbuilds_txt {
if ($_[0]) {
if ($made) { return system(qw!rm -rf!, $fname); }
} else {
- if (not -e $fname) { $made = 1; system('touch', $fname); }
+ if (not -e $fname) { $made = 1; system('mkdir', '-p', '/usr/sbo/repo'); system('touch', $fname); }
}
}