aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--qarepo.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/qarepo.pl b/qarepo.pl
index 6444253..abbae63 100644
--- a/qarepo.pl
+++ b/qarepo.pl
@@ -547,7 +547,7 @@ sub sync_repo {
my $pattern = wildcard_to_regexp($request);
my $matched = 0;
foreach my $candidate (keys %rpm_dependencies) {
- if ($candidate =~ /^$pattern/) {
+ if ($candidate =~ /^($pattern)((\.($arch|noarch))?\.rpm)?$/) {
$selection{$candidate} = 1;
$selection{$_} ||= 2 foreach keys %{$rpm_dependencies{$candidate}};
$matched = 1;