summaryrefslogtreecommitdiffstats
path: root/urpmi.update
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2001-11-27 18:45:37 +0000
committerFrancois Pons <fpons@mandriva.com>2001-11-27 18:45:37 +0000
commit41e32b3391326cf338195e5863121ff36fcd6a81 (patch)
tree2c960443694213e61af6f36d6b7e195cc640dd67 /urpmi.update
parent5f7fe924ae8e5acd605d4eef443362cec521f457 (diff)
downloadurpmi-41e32b3391326cf338195e5863121ff36fcd6a81.tar
urpmi-41e32b3391326cf338195e5863121ff36fcd6a81.tar.gz
urpmi-41e32b3391326cf338195e5863121ff36fcd6a81.tar.bz2
urpmi-41e32b3391326cf338195e5863121ff36fcd6a81.tar.xz
urpmi-41e32b3391326cf338195e5863121ff36fcd6a81.zip
curl support
Diffstat (limited to 'urpmi.update')
-rwxr-xr-xurpmi.update15
1 files changed, 10 insertions, 5 deletions
diff --git a/urpmi.update b/urpmi.update
index f7d57663..e35bd65f 100755
--- a/urpmi.update
+++ b/urpmi.update
@@ -29,18 +29,23 @@ sub main {
$options{force} = 0;
$options{noclean} = 1;
+ $options{sync} = undef;
foreach (@_) {
/^--?a/ and $options{all} = 1, next;
/^--?c/ and $options{noclean} = 0, next;
/^--?c/ 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;
/^--?noa/ and next; #- default, keeped for compability.
- /^-/ and die _("usage: urpmi.update [-a] <name> ...
+ /^-/ and die _("usage: urpmi.update [options] <name> ...
where <name> is a medium name to update.
- -a select all non-removable media.
- -c clean headers cache directory.
- -f force generation of base files, use another -f for hdlist files.
-\nunknown options '%s'\n", $_);
+") . _(" -a - select all non-removable media.
+") . _(" -c - clean headers cache directory.
+") . _(" -f - force generation of hdlist files.
+") . _(" --wget - use wget to retrieve distant files.
+") . _(" --curl - use curl to retrieve distant files.
+") . _("\nunknown options '%s'\n", $_);
push @toupdates, $_;
}