diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-02-14 20:56:08 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-02-14 20:56:08 +0000 |
commit | a7a01dced4859d77d9b507c41d7638f3ea873193 (patch) | |
tree | 15bd948164eaa4ab67ad9b111693c132f432af86 | |
parent | 46d548a4440c808dd7b9e5dc8947506c64838ef2 (diff) | |
download | urpmi-a7a01dced4859d77d9b507c41d7638f3ea873193.tar urpmi-a7a01dced4859d77d9b507c41d7638f3ea873193.tar.gz urpmi-a7a01dced4859d77d9b507c41d7638f3ea873193.tar.bz2 urpmi-a7a01dced4859d77d9b507c41d7638f3ea873193.tar.xz urpmi-a7a01dced4859d77d9b507c41d7638f3ea873193.zip |
return the proper error code in some cases when failing to install some packages
(conflicts, requires on older than installed packages, unstallable
packages)
-rw-r--r-- | NEWS | 2 | ||||
-rwxr-xr-x | urpmi | 6 |
2 files changed, 5 insertions, 3 deletions
@@ -1,4 +1,6 @@ - urpmi: + o return the proper error code in some cases when failing to install some + packages o --test: do not display "More information on package" o --test: do not update /var/lib/rpm/installed-through-deps.list @@ -553,7 +553,7 @@ has to be removed for others to be upgraded:\n%s\n", $list) have to be removed for others to be upgraded:\n%s\n", $list); print "$msg\n"; dudf_invoke($dudf, "dudf_exit", 0, $msg); - exit 0; + exit 17; } my $msg = urpm::select::conflicting_packages_msg_(\@conflicting_pkgs_msgs); @@ -563,7 +563,7 @@ have to be removed for others to be upgraded:\n%s\n", $list); if ($urpm->{options}{auto}) { print "$msg\n"; } else { - $force || urpm::msg::ask_yes_or_no($msg) or exit 0; + $force || urpm::msg::ask_yes_or_no($msg) or exit 17; } } @@ -633,7 +633,7 @@ if (!$urpm->{options}{auto} && $ask_user && $urpm->{nb_install} || $env && !$opt exit 0; #- exit now for specific environment. } my $noexpr = N("Nn"); - $force || message_input_($p . N(" (Y/n) "), boolean => 1) !~ /[$noexpr]/ or exit 0; + $force || message_input_($p . N(" (Y/n) "), boolean => 1) !~ /[$noexpr]/ or exit 17; } dudf_invoke($dudf, "check_removed_upgraded", $state); |