From dd3f492a0ab5e9cfabd7c9b7e4887a899f3fc4ce Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Fri, 28 Mar 2008 11:41:41 +0000 Subject: don't pass "with-dir" if not set (otherwise urpm::media::add_distrib_media currently does not override it) --- gurpmi.addmedia | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gurpmi.addmedia b/gurpmi.addmedia index e4670381..23c39230 100755 --- a/gurpmi.addmedia +++ b/gurpmi.addmedia @@ -134,7 +134,7 @@ foreach (@addmedia_args) { if_(!$distrib, undef), if_($update, update => $update), mirrorlist => $mirrorlist, - 'with-dir' => $with_dir, + if_($with_dir, 'with-dir' => $with_dir), ); } if ($success) { -- cgit v1.2.1