From 7e7642ab0f33a8cbf4c5e1067bd9496c02f4f807 Mon Sep 17 00:00:00 2001 From: Andreas Guldstrand Date: Sat, 16 Apr 2016 19:34:38 +0200 Subject: Allow tags to give names for LO too --- sbofind | 4 ++-- 1 file 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 }; } } -- cgit v1.2.3