summaryrefslogtreecommitdiffstats
path: root/urpmi.addmedia
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2010-06-16 09:18:25 +0000
committerOlivier Blin <oblin@mandriva.com>2010-06-16 09:18:25 +0000
commit3fff793cffd8170e0f15a8138e5f9fd7e40cb0cc (patch)
treed6ded36fbeb704a0d217ea0bc5f24bb22991a8e7 /urpmi.addmedia
parentc5580c7aba7a49df77d221c69aea3da2adc0ff8b (diff)
downloadurpmi-3fff793cffd8170e0f15a8138e5f9fd7e40cb0cc.tar
urpmi-3fff793cffd8170e0f15a8138e5f9fd7e40cb0cc.tar.gz
urpmi-3fff793cffd8170e0f15a8138e5f9fd7e40cb0cc.tar.bz2
urpmi-3fff793cffd8170e0f15a8138e5f9fd7e40cb0cc.tar.xz
urpmi-3fff793cffd8170e0f15a8138e5f9fd7e40cb0cc.zip
add --zeroconf support in urpmi.addmedia
Diffstat (limited to 'urpmi.addmedia')
-rwxr-xr-xurpmi.addmedia5
1 files changed, 4 insertions, 1 deletions
diff --git a/urpmi.addmedia b/urpmi.addmedia
index 872e93b4..415d1e4a 100755
--- a/urpmi.addmedia
+++ b/urpmi.addmedia
@@ -48,6 +48,7 @@ examples:
urpmi.addmedia --distrib --mirrorlist '\$MIRRORLIST'
urpmi.addmedia --mirrorlist '\$MIRRORLIST' backports media/main/backports
+ urpmi.addmedia --distrib --zeroconf
and [options] are from
@@ -101,7 +102,7 @@ my $with_dir;
$options{quiet} = 1 if $options{verbose} < 0;
$url or ($url, $name) = ($name, '');
-if ($options{mirrorlist}) {
+if ($options{mirrorlist} || $options{zeroconf}) {
if ($options{distrib}) {
$url and die N("no argument needed for --distrib --mirrorlist <url>") . "\n";
} else {
@@ -144,6 +145,7 @@ if ($options{distrib}) {
$name,
$url,
mirrorlist => $options{mirrorlist},
+ zeroconf => $options{zeroconf},
virtual => $options{virtual},
only_updates => $options{update},
probe_with => $options{probe_with},
@@ -167,6 +169,7 @@ if ($options{distrib}) {
urpm::media::add_medium($urpm,
$name, $url, $relative_synthesis,
mirrorlist => $options{mirrorlist},
+ zeroconf => $options{zeroconf},
'with-dir' => $with_dir,
virtual => $options{virtual},
update => $options{update},