diff options
author | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-04-16 19:34:38 +0200 |
---|---|---|
committer | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-04-16 19:34:38 +0200 |
commit | 7e7642ab0f33a8cbf4c5e1067bd9496c02f4f807 (patch) | |
tree | bea9f03b3e2af4f90ddc21043be39555c3de081d | |
parent | f8d49a5b2424b9abba30083017fa6435f4ba6343 (diff) | |
download | sbotools2-7e7642ab0f33a8cbf4c5e1067bd9496c02f4f807.tar.xz |
Allow tags to give names for LO too
-rwxr-xr-x | sbofind | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 }; } } |