summaryrefslogtreecommitdiffstats
path: root/gurpmi2
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-03-17 13:14:05 +0000
committerThierry Vignaud <tv@mandriva.org>2008-03-17 13:14:05 +0000
commit716e237d5231d9cd7c17348e85c49cad8f322fdd (patch)
tree55e71163c706929cee40bd182433f7e47944199e /gurpmi2
parentfa865a88302335c445bbf407ef22e530f8bd4ad8 (diff)
downloadurpmi-716e237d5231d9cd7c17348e85c49cad8f322fdd.tar
urpmi-716e237d5231d9cd7c17348e85c49cad8f322fdd.tar.gz
urpmi-716e237d5231d9cd7c17348e85c49cad8f322fdd.tar.bz2
urpmi-716e237d5231d9cd7c17348e85c49cad8f322fdd.tar.xz
urpmi-716e237d5231d9cd7c17348e85c49cad8f322fdd.zip
handle provides (spotted by salem)
Diffstat (limited to 'gurpmi2')
-rwxr-xr-xgurpmi25
1 files changed, 4 insertions, 1 deletions
diff --git a/gurpmi2 b/gurpmi2
index d43f68d6..7f06800b 100755
--- a/gurpmi2
+++ b/gurpmi2
@@ -26,6 +26,7 @@ our $allow_medium_change = 0;
our $auto_select = 0;
our $force = 0;
our $test = 0;
+our $use_provides = 1;
#- GUI globals
my ($mainw, $mainbox);
@@ -81,7 +82,9 @@ my $urpm = configure_urpm();
my $state = {};
my %requested = $urpm->register_rpms(@all_rpms);
if (@gurpmi::names) {
- urpm::select::search_packages($urpm, \%requested, [ @gurpmi::names ]) || $force or exit 1;
+ urpm::select::search_packages($urpm, \%requested, [ @gurpmi::names ],
+ use_provides => $use_provides,
+ ) || $force or exit 1;
}
#- return value is true if program should be restarted (in order to take care of important