diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2008-01-25 07:48:39 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2008-01-25 07:48:39 +0000 |
commit | 83b1bad801ea033b57773e81326e7e8ca4f91272 (patch) | |
tree | 9bb12f67fa57186b2ce391e2629848d944cfbc72 /urpmq | |
parent | ff364968a7bee5b48cea77e57b72f5ed77da9ed5 (diff) | |
download | urpmi-83b1bad801ea033b57773e81326e7e8ca4f91272.tar urpmi-83b1bad801ea033b57773e81326e7e8ca4f91272.tar.gz urpmi-83b1bad801ea033b57773e81326e7e8ca4f91272.tar.bz2 urpmi-83b1bad801ea033b57773e81326e7e8ca4f91272.tar.xz urpmi-83b1bad801ea033b57773e81326e7e8ca4f91272.zip |
- urpmq:
o add --no-suggests
Diffstat (limited to 'urpmq')
-rwxr-xr-x | urpmq | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -50,6 +50,7 @@ usage: ") . N(" --sortmedia - sort media according to substrings separated by comma. ") . N(" --synthesis - use the given synthesis instead of urpmi db. ") . N(" --auto-select - automatically select packages to upgrade the system. +") . N(" --no-suggests - do not auto select \"suggested\" packages. ") . N(" --fuzzy - impose fuzzy search (same as -y). ") . N(" --keep - keep existing packages if possible, reject requested packages that lead to removals. @@ -306,13 +307,16 @@ if ($options{list_aliases}) { keep => $options{keep}, rpmdb => $options{env} && "$options{env}/rpmdb.cz", auto_select => $options{auto_select}, + no_suggests => $urpm->{options}{'no-suggests'}, callback_choices => $stop_on_choices); $options{deps} or delete @{$state->{selected}}{grep { exists $state->{selected}{$_} && ! defined $state->{selected}{$_} } keys %{$state->{selected}}}; } elsif ($options{deps}) { #- only deps required. my $empty_db = new URPM; #- URPM has same methods as URPM::DB and empty URPM will be seen as empty URPM::DB. - $urpm->resolve_requested($empty_db, $state, \%requested, callback_choices => $stop_on_choices, nodeps => 1); + $urpm->resolve_requested($empty_db, $state, \%requested, + no_suggests => $urpm->{options}{'no-suggests'}, + callback_choices => $stop_on_choices, nodeps => 1); } else { $state->{selected} = \%requested; } |