summaryrefslogtreecommitdiffstats
path: root/urpmi.addmedia
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2001-07-02 12:40:31 +0000
committerFrancois Pons <fpons@mandriva.com>2001-07-02 12:40:31 +0000
commitab6ad72f9f7379713af3cb358d2f829acebed5c4 (patch)
tree22c316c9086da326cb57611ee5bb753905c0a5dc /urpmi.addmedia
parentea64cb196265222dc7084cdeaf19b7a40327d91c (diff)
downloadurpmi-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-xurpmi.addmedia5
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)