aboutsummaryrefslogtreecommitdiff
path: root/SBO-Lib/lib
diff options
context:
space:
mode:
authorAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-04-19 21:58:02 +0200
committerAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-04-19 21:58:02 +0200
commit3eb16e24c59a80b8481b599b4b3627aa37d6eb56 (patch)
treec1722e2340ca53ab4b06c7cdab80e126c28c7df0 /SBO-Lib/lib
parent621927101c2908a8f6b6f69f2989747b98de70eb (diff)
downloadsbotools2-3eb16e24c59a80b8481b599b4b3627aa37d6eb56.tar.xz
pull_sbo_tree(): Only find() if the directory exists
Diffstat (limited to 'SBO-Lib/lib')
-rw-r--r--SBO-Lib/lib/SBO/Lib.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/SBO-Lib/lib/SBO/Lib.pm b/SBO-Lib/lib/SBO/Lib.pm
index a79caab..cec5f5f 100644
--- a/SBO-Lib/lib/SBO/Lib.pm
+++ b/SBO-Lib/lib/SBO/Lib.pm
@@ -298,7 +298,7 @@ sub pull_sbo_tree {
}
my $wanted = sub { chown 0, 0, $File::Find::name; };
- find($wanted, $repo_path);
+ find($wanted, $repo_path) if -d $repo_path;
if ($res and not chk_slackbuilds_txt()) {
generate_slackbuilds_txt();
}