summaryrefslogtreecommitdiffstats
path: root/gurpmi2
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-11-14 15:18:30 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-11-14 15:18:30 +0000
commitb67b7d701bd914153095b0ba121918d94ad9805b (patch)
tree1ac18220ba3ec6cd5c72e8cef93138b5d858e390 /gurpmi2
parent53ec6b3a03eee6945c48acb405c3af9061b9af84 (diff)
downloadurpmi-b67b7d701bd914153095b0ba121918d94ad9805b.tar
urpmi-b67b7d701bd914153095b0ba121918d94ad9805b.tar.gz
urpmi-b67b7d701bd914153095b0ba121918d94ad9805b.tar.bz2
urpmi-b67b7d701bd914153095b0ba121918d94ad9805b.tar.xz
urpmi-b67b7d701bd914153095b0ba121918d94ad9805b.zip
Allow to put rpm names on the gurpmi command-line
Diffstat (limited to 'gurpmi2')
-rwxr-xr-xgurpmi23
1 files changed, 3 insertions, 0 deletions
diff --git a/gurpmi2 b/gurpmi2
index b10fdfab..bdf36daf 100755
--- a/gurpmi2
+++ b/gurpmi2
@@ -64,6 +64,9 @@ $mainw->add($mainbox);
my $urpm = configure_urpm();
my $state = {};
my %requested = $urpm->register_rpms(@all_rpms);
+if (@gurpmi::names) {
+ $urpm->search_packages(\%requested, [ @gurpmi::names ]);
+}
$urpm->resolve_dependencies(
$state,
\%requested,