summaryrefslogtreecommitdiffstats
path: root/urpmi.update
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2006-11-29 14:25:01 +0000
committerPascal Rigaux <pixel@mandriva.com>2006-11-29 14:25:01 +0000
commitd5358dfaa2c196e595693b09dee13da02578b5d7 (patch)
tree5fe43e592dc10d859a614a09adfb57be1f3b80d7 /urpmi.update
parent2099cfcd9085af67d9416d8bc8aad67668860129 (diff)
downloadurpmi-d5358dfaa2c196e595693b09dee13da02578b5d7.tar
urpmi-d5358dfaa2c196e595693b09dee13da02578b5d7.tar.gz
urpmi-d5358dfaa2c196e595693b09dee13da02578b5d7.tar.bz2
urpmi-d5358dfaa2c196e595693b09dee13da02578b5d7.tar.xz
urpmi-d5358dfaa2c196e595693b09dee13da02578b5d7.zip
urpmi.removemedia now use urpm::args, and some cleanup
Diffstat (limited to 'urpmi.update')
-rwxr-xr-xurpmi.update8
1 files changed, 4 insertions, 4 deletions
diff --git a/urpmi.update b/urpmi.update
index fac9cd8d..4dd84128 100755
--- a/urpmi.update
+++ b/urpmi.update
@@ -55,11 +55,11 @@ where <name> is a medium name to update.
$ENV{PATH} = "/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin";
delete @ENV{qw(ENV BASH_ENV IFS CDPATH)};
-our @toupdates; #- set by urpm::args
+our @cmdline; #- set by urpm::args
my $urpm = new urpm;
$options{force} = 0;
-$options{noclean} = $options{verbose} = 1;
+$options{noclean} = 1;
urpm::args::parse_cmdline(urpm => $urpm) or exit(1);
@@ -76,8 +76,8 @@ my @entries = map { $_->{name} } @{$urpm->{media}};
if ($options{all} && !defined $options{ignore}) {
@entries == 0 and die N("nothing to update (use urpmi.addmedia to add a media)\n");
} else {
- if ($options{all}) { @toupdates = '' } #- select all
- urpm::media::select_media($urpm, @toupdates);
+ if ($options{all}) { @cmdline = '' } #- select all
+ urpm::media::select_media($urpm, @cmdline);
my $something_todo = 0;
foreach (@{$urpm->{media}}) {
$options{update} && $_->{update} and $_->{modified} = 1;