aboutsummaryrefslogtreecommitdiff
path: root/SBO-Lib/lib/SBO/Lib.pm
diff options
context:
space:
mode:
authorAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-04-19 00:11:49 +0200
committerAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-04-19 00:11:49 +0200
commit45a71cbcb00fca3b41535321450597619289460c (patch)
treee9ab24153e9a52b29f7df78b87a03f63a358e155 /SBO-Lib/lib/SBO/Lib.pm
parentc63e6781558166d0316c8ffa1e781fa9734e8f8e (diff)
downloadsbotools2-45a71cbcb00fca3b41535321450597619289460c.tar.xz
$File::Find::name is never empty
Diffstat (limited to 'SBO-Lib/lib/SBO/Lib.pm')
-rw-r--r--SBO-Lib/lib/SBO/Lib.pm5
1 files changed, 1 insertions, 4 deletions
diff --git a/SBO-Lib/lib/SBO/Lib.pm b/SBO-Lib/lib/SBO/Lib.pm
index e4853ce..e112f89 100644
--- a/SBO-Lib/lib/SBO/Lib.pm
+++ b/SBO-Lib/lib/SBO/Lib.pm
@@ -297,10 +297,7 @@ sub pull_sbo_tree {
$res = git_sbo_tree($url);
}
- my $wanted = sub {
- $File::Find::name ? chown 0, 0, $File::Find::name
- : chown 0, 0, $File::Find::dir;
- };
+ my $wanted = sub { chown 0, 0, $File::Find::name; };
find($wanted, $repo_path);
if ($res and not chk_slackbuilds_txt()) {
generate_slackbuilds_txt();