sbotools2

Maintenance fork of the original sbotools version 2
Log | Files | Refs | README

commit 7e7642ab0f33a8cbf4c5e1067bd9496c02f4f807
parent f8d49a5b2424b9abba30083017fa6435f4ba6343
Author: Andreas Guldstrand <andreas.guldstrand@gmail.com>
Date:   Sat, 16 Apr 2016 19:34:38 +0200

Allow tags to give names for LO too

Diffstat:
Msbofind | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 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 }; } }