commit 0c7b5269e0dd8a43a4cd8a9bd23191b27d2d9933
parent 58563bded8fb54fde18bac1d35b9598bb9ac8ef2
Author: Andreas Guldstrand <andreas.guldstrand@gmail.com>
Date: Thu, 26 Nov 2015 13:19:22 +0100
Don't return a file as if it were a directory
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/SBO-Lib/lib/SBO/Lib.pm b/SBO-Lib/lib/SBO/Lib.pm
@@ -706,6 +706,7 @@ sub get_src_dir {
FIRST: while (my $ls = readdir $tsbo_dh) {
next FIRST if $ls =~ /^\.[\.]{0,1}$/;
next FIRST if $ls =~ /^package-/;
+ next FIRST unless -d "$tmpd/$ls";
my $found = 0;
seek $fh, 0, 0;
SECOND: while (my $line = <$fh>) {