commit 3eb16e24c59a80b8481b599b4b3627aa37d6eb56
parent 621927101c2908a8f6b6f69f2989747b98de70eb
Author: Andreas Guldstrand <andreas.guldstrand@gmail.com>
Date: Tue, 19 Apr 2016 21:58:02 +0200
pull_sbo_tree(): Only find() if the directory exists
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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();
}