aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-04-16 19:34:38 +0200
committerAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-04-16 19:34:38 +0200
commit7e7642ab0f33a8cbf4c5e1067bd9496c02f4f807 (patch)
treebea9f03b3e2af4f90ddc21043be39555c3de081d
parentf8d49a5b2424b9abba30083017fa6435f4ba6343 (diff)
downloadsbotools2-7e7642ab0f33a8cbf4c5e1067bd9496c02f4f807.tar.xz
Allow tags to give names for LO too
-rwxr-xr-xsbofind4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbofind b/sbofind
index fa93be5..ad16f5e 100755
--- a/sbofind
+++ b/sbofind
@@ -13,7 +13,7 @@
use 5.16.0;
use strict;
use warnings FATAL => 'all';
-use SBO::Lib qw/ slackbuilds_or_fetch script_error open_read get_build_queue %config $slackbuilds_txt $repo_path show_version /;
+use SBO::Lib qw/ slackbuilds_or_fetch script_error open_read get_build_queue %config $slackbuilds_txt $repo_path show_version in /;
use File::Basename;
use Getopt::Long qw(:config bundling);
@@ -118,7 +118,7 @@ sub perform_search {
opendir(my $dh, $config{LOCAL_OVERRIDES});
while (my $dir = readdir($dh)) {
next if $local{$dir};
- if ($dir =~ /\Q$search_arg\E/) {
+ if ($dir =~ /\Q$search_arg\E/ or in($dir, @names)) {
push @findings, {name => $dir, location => "$config{LOCAL_OVERRIDES}/$dir", local => 1 };
}
}