diff options
author | Francois Pons <fpons@mandriva.com> | 2001-07-02 12:40:31 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2001-07-02 12:40:31 +0000 |
commit | ab6ad72f9f7379713af3cb358d2f829acebed5c4 (patch) | |
tree | 22c316c9086da326cb57611ee5bb753905c0a5dc /urpmi.addmedia | |
parent | ea64cb196265222dc7084cdeaf19b7a40327d91c (diff) | |
download | urpmi-ab6ad72f9f7379713af3cb358d2f829acebed5c4.tar urpmi-ab6ad72f9f7379713af3cb358d2f829acebed5c4.tar.gz urpmi-ab6ad72f9f7379713af3cb358d2f829acebed5c4.tar.bz2 urpmi-ab6ad72f9f7379713af3cb358d2f829acebed5c4.tar.xz urpmi-ab6ad72f9f7379713af3cb358d2f829acebed5c4.zip |
1.6-8mdk
Diffstat (limited to 'urpmi.addmedia')
-rwxr-xr-x | urpmi.addmedia | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/urpmi.addmedia b/urpmi.addmedia index 9e5a9e7a..c08e5214 100755 --- a/urpmi.addmedia +++ b/urpmi.addmedia @@ -26,7 +26,8 @@ import urpm _; sub main { my ($name, $url, $with, $relative_hdlist) = @_; - my $usage = _("usage: urpmi.addmedia <name> <url> + $name =~ /^--?update/ and (my $update, $name, $url, $with, $relative_hdlist) = @_; + my $usage = _("usage: urpmi.addmedia [--update] <name> <url> where <url> is one of file://<path> ftp://<login>:<password>@<host>/<path> with <relative filename of hdlist> @@ -48,7 +49,7 @@ where <url> is one of my $urpm = new urpm; $urpm->read_config; - $urpm->add_medium($name, $url, $relative_hdlist); + $urpm->add_medium($name, $url, $relative_hdlist, update => $update); $urpm->update_media(noclean => 1); #- check creation of media (during update has been successfull) |