summaryrefslogtreecommitdiffstats
path: root/urpmq
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2002-01-16 18:21:42 +0000
committerFrancois Pons <fpons@mandriva.com>2002-01-16 18:21:42 +0000
commit43a2e10ca24e7e3aefc448a81d2b5ecb1ad75a68 (patch)
treea83977b31deaaef21f71ce946e6695402c0c60c5 /urpmq
parenta9a81651654af34db20a0b4bab4488c7a50cab38 (diff)
downloadurpmi-43a2e10ca24e7e3aefc448a81d2b5ecb1ad75a68.tar
urpmi-43a2e10ca24e7e3aefc448a81d2b5ecb1ad75a68.tar.gz
urpmi-43a2e10ca24e7e3aefc448a81d2b5ecb1ad75a68.tar.bz2
urpmi-43a2e10ca24e7e3aefc448a81d2b5ecb1ad75a68.tar.xz
urpmi-43a2e10ca24e7e3aefc448a81d2b5ecb1ad75a68.zip
3.2-1mdk
Diffstat (limited to 'urpmq')
-rwxr-xr-xurpmq9
1 files changed, 7 insertions, 2 deletions
diff --git a/urpmq b/urpmq
index fcedeb53..4c03f641 100755
--- a/urpmq
+++ b/urpmq
@@ -46,6 +46,7 @@ usage:
") . _(" -r - print version and release too with name.
") . _(" -f - print version, release and arch with name.
") . "\n" . _(" --update - use only update media.
+") . _(" --mediums - use only the medium listed by comma.
") . _(" --auto-select - automatically select packages for upgrading the system.
") . _(" --headers - extract headers for package listed from urpmi db to
stdout (root only).
@@ -61,6 +62,7 @@ my @nextargv;
for (@ARGV) {
/^--help$/ and do { usage; next };
/^--update$/ and do { $query->{update} = 1; next };
+ /^--mediums$/ and do { push @nextargv, \$query->{mediums}; next };
/^--auto-select$/ and do { $query->{auto_select} = 1; next };
/^--headers$/ and do { $query->{headers} = 1; next };
/^--sources$/ and do { $query->{sources} = 1; next };
@@ -92,7 +94,10 @@ my $urpm = new urpm;
$query->{verbose} or $urpm->{log} = sub {};
$urpm->read_config(nocheck_access => 1);
-$urpm->parse_synthesis($_) foreach grep { !$_->{ignore} && (!$update || $_->{active}) } @{$urpm->{media} || []};
+$query->{mediums} and $urpm->select_media(split ',', $query->{mediums});
+foreach (grep { !$_->{ignore} && (!$query->{update} || $_->{update}) && (!$query->{mediums} || $_->{modified}) } @{$urpm->{media} || []}) {
+ $urpm->parse_synthesis($_);
+}
if (@files) {
#- build closure with local package and return list of names.
@@ -100,7 +105,7 @@ if (@files) {
}
#- relocate depslist.
-$urpm->relocate_depslist_provides(use_active => $query->{update});
+$urpm->relocate_depslist_provides();
#- search the packages according the selection given by the user,
#- basesystem is added to the list so if it need to be upgraded, all its dependency