diff options
author | Christophe Fergeau <cfergeau@mandriva.com> | 2009-03-20 08:37:14 +0000 |
---|---|---|
committer | Christophe Fergeau <cfergeau@mandriva.com> | 2009-03-20 08:37:14 +0000 |
commit | d057196d86c7d10e9090017a8bc299da75e01d80 (patch) | |
tree | 1b3135c930502aedb1668e7f8515a3a73e081652 | |
parent | 9d778d91a95e1466d0e5176f8fd54fdfe3787612 (diff) | |
download | urpmi-d057196d86c7d10e9090017a8bc299da75e01d80.tar urpmi-d057196d86c7d10e9090017a8bc299da75e01d80.tar.gz urpmi-d057196d86c7d10e9090017a8bc299da75e01d80.tar.bz2 urpmi-d057196d86c7d10e9090017a8bc299da75e01d80.tar.xz urpmi-d057196d86c7d10e9090017a8bc299da75e01d80.zip |
Exit with errorcode != 0 when failing to add a media, fixes #47952
-rwxr-xr-x | urpmi.addmedia | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/urpmi.addmedia b/urpmi.addmedia index bfc637ba..872e93b4 100755 --- a/urpmi.addmedia +++ b/urpmi.addmedia @@ -150,7 +150,7 @@ if ($options{distrib}) { nolock => $options{nolock}, ask_media => $add_media_callback, 'xml-info' => $options{'xml-info'}, - ); + ) or $urpm->{fatal}(10, N("unable to add medium")); $ok = urpm::media::update_media($urpm, %options, quiet => $options{verbose} < 0, callback => \&urpm::download::sync_logger); |