diff options
-rw-r--r-- | urpm/select.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/urpm/select.pm b/urpm/select.pm index ddf04ea6..c01d8b17 100644 --- a/urpm/select.pm +++ b/urpm/select.pm @@ -86,7 +86,7 @@ sub search_packages { && ($options{src} ? $_->arch eq 'src' : $_->is_arch_compat) && ($options{use_provides} || $_->name eq $v) && defined($_->id) - && ($urpm->{searchmedia} || pkg_in_searchmedia($urpm, $_)) + && (!$urpm->{searchmedia} || pkg_in_searchmedia($urpm, $_)) ? $_ : @{[]}; } $urpm->packages_providing($v)) { |