summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2013-02-25 17:56:52 +0000
committerThierry Vignaud <tv@mageia.org>2013-02-25 17:56:52 +0000
commita03c66a43c9a0e7d14625310ecdcd67ca8b4369e (patch)
tree453fcf39acbffd9fed5ad09ec8b1f7a5fd6978e7
parent7cb2f93c1264a165caff354cef2b06f8e63491dc (diff)
downloadurpmi-a03c66a43c9a0e7d14625310ecdcd67ca8b4369e.tar
urpmi-a03c66a43c9a0e7d14625310ecdcd67ca8b4369e.tar.gz
urpmi-a03c66a43c9a0e7d14625310ecdcd67ca8b4369e.tar.bz2
urpmi-a03c66a43c9a0e7d14625310ecdcd67ca8b4369e.tar.xz
urpmi-a03c66a43c9a0e7d14625310ecdcd67ca8b4369e.zip
simplify
-rwxr-xr-xurpmi4
1 files changed, 2 insertions, 2 deletions
diff --git a/urpmi b/urpmi
index edec57c6..c89516ca 100755
--- a/urpmi
+++ b/urpmi
@@ -382,7 +382,7 @@ my $rpm_lock = !$env && !$options{nolock} && urpm::lock::rpm_db($urpm, 'exclusiv
my $search_result = '';
if (@names) {
$search_result = urpm::select::search_packages($urpm,
- \%requested, [ @names ],
+ \%requested, \@names,
all => $all,
use_provides => $use_provides,
fuzzy => $urpm->{options}{fuzzy},
@@ -395,7 +395,7 @@ if (@names) {
}
}
if (@src_names) {
- $search_result = urpm::select::search_packages($urpm, \%requested, [ @src_names ],
+ $search_result = urpm::select::search_packages($urpm, \%requested, \@src_names,
all => $all,
use_provides => $use_provides,
fuzzy => $urpm->{options}{fuzzy},