summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-02-27 20:49:33 +0000
committerThierry Vignaud <tv@mageia.org>2012-02-27 20:49:33 +0000
commit5e8cc5185a12d7d46034c10b214a97b5b9b96eee (patch)
tree63c3175b3585803c36448cdc4f8f5b0ff2835a59 /urpm.pm
parent7ab7fd6abde2b107c3235d9054a0e5c6ceffc922 (diff)
downloadurpmi-5e8cc5185a12d7d46034c10b214a97b5b9b96eee.tar
urpmi-5e8cc5185a12d7d46034c10b214a97b5b9b96eee.tar.gz
urpmi-5e8cc5185a12d7d46034c10b214a97b5b9b96eee.tar.bz2
urpmi-5e8cc5185a12d7d46034c10b214a97b5b9b96eee.tar.xz
urpmi-5e8cc5185a12d7d46034c10b214a97b5b9b96eee.zip
fix urpmi failing silently and with exit status 0 when package
installation fails due to either conflicts (mdv#63072) or to unselecting package (inspirated by mdv, mdv#63940)
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/urpm.pm b/urpm.pm
index eee09652..65e11e80 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -19,6 +19,10 @@ our $VERSION = '6.44';
our @ISA = qw(URPM Exporter);
our @EXPORT_OK = ('file_from_local_url', 'file_from_local_medium', 'is_local_medium');
+# Prepare exit code. If you change this, the exiting with a failure and the message given will be postponed to the end of the overall processing.
+our $postponed_msg = N("While some packages may have been installed, there were failures.\n");
+our $postponed_code = 0;
+
use URPM;
use URPM::Resolve;