summaryrefslogtreecommitdiffstats
path: root/urpmi.addmedia
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.com>2006-08-01 14:22:59 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.com>2006-08-01 14:22:59 +0000
commitaacf099aadc9dafe31371921966e814f7ac4f961 (patch)
treea53534138ae4003e12e2fb154397e5f011397366 /urpmi.addmedia
parentd4a0ca3c096b3f3290cf70d7a847d79a3e840972 (diff)
downloadurpmi-aacf099aadc9dafe31371921966e814f7ac4f961.tar
urpmi-aacf099aadc9dafe31371921966e814f7ac4f961.tar.gz
urpmi-aacf099aadc9dafe31371921966e814f7ac4f961.tar.bz2
urpmi-aacf099aadc9dafe31371921966e814f7ac4f961.tar.xz
urpmi-aacf099aadc9dafe31371921966e814f7ac4f961.zip
Let urpmi.addmedia return an exit status of 1 when adding a media failed (#23923)
Diffstat (limited to 'urpmi.addmedia')
-rwxr-xr-xurpmi.addmedia1
1 files changed, 1 insertions, 0 deletions
diff --git a/urpmi.addmedia b/urpmi.addmedia
index bed458f3..275b5540 100755
--- a/urpmi.addmedia
+++ b/urpmi.addmedia
@@ -83,6 +83,7 @@ sub remove_failed {
local $urpm->{log} = sub {};
$urpm->remove_selected_media;
$urpm->update_media(%options, callback => \&urpm::download::sync_logger);
+ exit(1);
}
}