summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rwxr-xr-xgurpmi22
2 files changed, 2 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 44f074ed..9ee86fff 100644
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,7 @@
o ensure urpmi messages are always in UTF-8
o return urpmi error code
o handle --force
+ o return 1 like urpmi if package doesn't exist
Version 5.11 - 11 March 2008, by Pascal "Pixel" Rigaux
diff --git a/gurpmi2 b/gurpmi2
index 5339daa7..d43f68d6 100755
--- a/gurpmi2
+++ b/gurpmi2
@@ -81,7 +81,7 @@ my $urpm = configure_urpm();
my $state = {};
my %requested = $urpm->register_rpms(@all_rpms);
if (@gurpmi::names) {
- urpm::select::search_packages($urpm, \%requested, [ @gurpmi::names ]);
+ urpm::select::search_packages($urpm, \%requested, [ @gurpmi::names ]) || $force or exit 1;
}
#- return value is true if program should be restarted (in order to take care of important