summaryrefslogtreecommitdiffstats
path: root/mdkupdate
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2006-03-02 19:35:16 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2006-03-02 19:35:16 +0000
commitb4e7c36715bfd985507f21ea7a0b776a56f02473 (patch)
treedc718e08ba729416600fd905315011c87eee26b0 /mdkupdate
parent26719f96ed82368718e99684c4e7121bc6a4fa9d (diff)
downloadmgaonline-b4e7c36715bfd985507f21ea7a0b776a56f02473.tar
mgaonline-b4e7c36715bfd985507f21ea7a0b776a56f02473.tar.gz
mgaonline-b4e7c36715bfd985507f21ea7a0b776a56f02473.tar.bz2
mgaonline-b4e7c36715bfd985507f21ea7a0b776a56f02473.tar.xz
mgaonline-b4e7c36715bfd985507f21ea7a0b776a56f02473.zip
(add_media) fix running urpmi.addmedia when there's no options
Diffstat (limited to 'mdkupdate')
-rwxr-xr-xmdkupdate2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdkupdate b/mdkupdate
index d20fe7bc..6af2ac28 100755
--- a/mdkupdate
+++ b/mdkupdate
@@ -231,7 +231,7 @@ sub add_media {
my ($media_name, $mirror, $hdlist, $option) = @_;
eval {
system "/usr/sbin/urpmi.removemedia", $media_name;
- system "/usr/sbin/urpmi.addmedia", $option, $media_name, $mirror, "with", $hdlist;
+ system "/usr/sbin/urpmi.addmedia", if_($option, $option), $media_name, $mirror, "with", $hdlist;
};
$@ and die "Problem adding bundle media with urpmi";
}