From 9c4e15e1f10bee35460df33a663ff38663605912 Mon Sep 17 00:00:00 2001 From: Kevin Duret Date: Wed, 8 Mar 2023 10:35:39 +0100 Subject: [PATCH] fix(ci): detect properly plugin changes in lib directory (#4264) --- .github/scripts/process-plugins.py | 2 +- src/apps/protocols/dns/lib/dns.pm | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/scripts/process-plugins.py b/.github/scripts/process-plugins.py index 5a3fa8932..f4c80badb 100644 --- a/.github/scripts/process-plugins.py +++ b/.github/scripts/process-plugins.py @@ -31,7 +31,7 @@ list_packages = set() for plugin in plugins: list_plugins.add(plugin) try: - found = re.search('(.*)\/(?:plugin\.pm|mode\/.+|custom\/.+)', plugin).group(1) + found = re.search('(.*)\/(?:plugin\.pm|(?:lib|mode|custom)\/.+)', plugin).group(1) list_plugins.add(found) except AttributeError: pass diff --git a/src/apps/protocols/dns/lib/dns.pm b/src/apps/protocols/dns/lib/dns.pm index 126763013..d527e5756 100644 --- a/src/apps/protocols/dns/lib/dns.pm +++ b/src/apps/protocols/dns/lib/dns.pm @@ -49,7 +49,7 @@ sub search { $map_search_field->{PTR} = 'ptrdname' if (defined($self->{option_results}->{use_ptr_fqdn})); my $error_quit = defined($options{error_quit}) ? $options{error_quit} : undef; - + my $reply = $handle->search($self->{option_results}->{search}, $search_type); if ($reply) { foreach my $rr ($reply->answer) { @@ -68,14 +68,14 @@ sub search { $self->{output}->exit(); } } - + return sort @results; } sub connect { my ($self, %options) = @_; my %dns_options = (); - + if (defined($self->{option_results}->{nameservers})) { $dns_options{nameservers} = [@{$self->{option_results}->{nameservers}}]; }