summaryrefslogtreecommitdiffstats
path: root/urpmq
diff options
context:
space:
mode:
Diffstat (limited to 'urpmq')
-rwxr-xr-xurpmq15
1 files changed, 8 insertions, 7 deletions
diff --git a/urpmq b/urpmq
index 5a82f419..575fa382 100755
--- a/urpmq
+++ b/urpmq
@@ -50,8 +50,7 @@ usage:
") . _(" --headers - extract headers for package listed from urpmi db to
stdout (root only).
") . _(" --sources - give all source packages before downloading (root only).
-") . _(" --force - force invocation even if some packages do not
-exist.
+") . _(" --force - force invocation even if some packages do not exist.
") . "\n" . _(" names or rpm files given on command line are queried.
", $urpm::VERSION);
exit(0);
@@ -70,8 +69,8 @@ for (@ARGV) {
/[\?h]/ and do { usage; next };
/d/ and do { $query->{deps} = 1; next };
/u/ and do { $query->{upgrade} = 1; next };
- /m/ and do { next };
- /M/ and do { next };
+ /m/ and do { $query->{deps} = $query->{upgrade} = 1; next };
+ /M/ and do { $query->{deps} = $query->{upgrade} = 1; next };
/c/ and do { $query->{complete} = 1; next };
/g/ and do { $query->{group} = 1; next };
/p/ and do { $query->{use_provides} = 1; next };
@@ -116,7 +115,9 @@ $urpm->relocate_depslist_provides(use_active => $query->{update});
#- basesystem is added to the list so if it need to be upgraded, all its dependency
#- will be updated too.
my %packages;
-$urpm->search_packages(\%packages, [ @names ], use_provides => $query->{use_provides}, use_active => $query->{update})
+$urpm->search_packages(\%packages, [ @names ],
+ use_provides => $query->{use_provides},
+ use_active => $query->{update})
or $query->{force} or exit 1;
#- auto select package for upgrading the distribution.
@@ -134,8 +135,8 @@ if ($query->{auto_select}) {
#- filter to add in packages selected required packages.
$query->{use_provides} || @files or $urpm->read_provides;
$query->{update} || $query->{auto_select} or $urpm->read_config(nocheck_access => 1);
-$urpm->filter_minimal_packages_to_upgrade(\%packages, undef,
- keep_alldeps => $query->{deps} && !$query->{upgrade});
+$query->{deps} and $urpm->filter_minimal_packages_to_upgrade(\%packages, undef,
+ keep_alldeps => !$query->{upgrade});
#- get out of package that should not be upgraded.
$urpm->deselect_unwanted_packages(\%packages);