diff options
author | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2015-12-18 00:36:02 +0100 |
---|---|---|
committer | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2015-12-23 16:21:02 +0100 |
commit | c8faa619a19d528765ca44ee72a9888413a73045 (patch) | |
tree | 6eb00a7c3fa5b0f7f56ef62e7a2ea516d5da4f8f | |
parent | 2e773e67617e3ee3b9d30ed2365579ef18aa3a29 (diff) | |
download | sbotools2-c8faa619a19d528765ca44ee72a9888413a73045.tar.xz |
Need to make sure path exists before creating SLACKBUILDS.TXT
-rwxr-xr-x | t/env.t | 2 | ||||
-rwxr-xr-x | t/install.t | 2 | ||||
-rwxr-xr-x | t/remove.t | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -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); } } } @@ -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); } } } |