summaryrefslogtreecommitdiffstats
path: root/urpmi.update
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2002-01-28 12:07:56 +0000
committerFrancois Pons <fpons@mandriva.com>2002-01-28 12:07:56 +0000
commitc452cd5c4f51f18762eb56eaf994261380a832f1 (patch)
treed22c7888d31d975ca212e99a25dc999ea5240887 /urpmi.update
parent26535f788123c69486484a8ba118ede1178f0394 (diff)
downloadurpmi-c452cd5c4f51f18762eb56eaf994261380a832f1.tar
urpmi-c452cd5c4f51f18762eb56eaf994261380a832f1.tar.gz
urpmi-c452cd5c4f51f18762eb56eaf994261380a832f1.tar.bz2
urpmi-c452cd5c4f51f18762eb56eaf994261380a832f1.tar.xz
urpmi-c452cd5c4f51f18762eb56eaf994261380a832f1.zip
3.2-4mdk
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 ed75724b..eb36afac 100755
--- a/urpmi.update
+++ b/urpmi.update
@@ -26,17 +26,17 @@ import urpm _;
sub main {
my (@toupdates, %options);
+ my $urpm = new urpm;
$options{force} = 0;
$options{noclean} = 1;
- $options{sync} = undef;
foreach (@_) {
/^--?a/ and $options{all} = 1, next;
/^--?c/ and $options{noclean} = 0, next;
/^--?d/ and $options{depslist} = 1, next;
/^--?f/ and ++$options{force}, next;
- /^--wget/ and $options{sync} = \&urpm::sync_wget, next;
- /^--curl/ and $options{sync} = \&urpm::sync_curl, next;
+ /^--wget/ and $urpm->{sync} = \&urpm::sync_wget, next;
+ /^--curl/ and $urpm->{sync} = \&urpm::sync_curl, next;
/^--?noa/ and next; #- default, keeped for compability.
/^-/ and die _("usage: urpmi.update [options] <name> ...
where <name> is a medium name to update.
@@ -50,7 +50,7 @@ where <name> is a medium name to update.
push @toupdates, $_;
}
- my $urpm = new urpm; $urpm->read_config;
+ $urpm->read_config;
my @entries = map { $_->{name} } @{$urpm->{media}};
if ($options{all}) {