summaryrefslogtreecommitdiffstats
path: root/urpm/args.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-02-27 20:49:36 +0000
committerThierry Vignaud <tv@mageia.org>2012-02-27 20:49:36 +0000
commit72c315d0ff18010dd13c32a0b1b41d4a06f20686 (patch)
tree50292efc82e104acb184fb3365ec5621b5470b7b /urpm/args.pm
parent5e8cc5185a12d7d46034c10b214a97b5b9b96eee (diff)
downloadurpmi-72c315d0ff18010dd13c32a0b1b41d4a06f20686.tar
urpmi-72c315d0ff18010dd13c32a0b1b41d4a06f20686.tar.gz
urpmi-72c315d0ff18010dd13c32a0b1b41d4a06f20686.tar.bz2
urpmi-72c315d0ff18010dd13c32a0b1b41d4a06f20686.tar.xz
urpmi-72c315d0ff18010dd13c32a0b1b41d4a06f20686.zip
urpmq: fix non-zero exit code if .rpm file was not found (POK, mdv#64969)
Diffstat (limited to 'urpm/args.pm')
-rw-r--r--urpm/args.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/urpm/args.pm b/urpm/args.pm
index aa7b0d79..c66db9de 100644
--- a/urpm/args.pm
+++ b/urpm/args.pm
@@ -303,7 +303,10 @@ my %options_spec = (
my $x = $_[0];
if ($x =~ /\.rpm$/) {
if (-r $x) { push @::files, $x }
- else { print STDERR N("urpmq: cannot read rpm file \"%s\"\n", $x) }
+ else {
+ print STDERR N("urpmq: cannot read rpm file \"%s\"\n", $x);
+ $urpm::postponed_code = 1;
+ }
} elsif ($x =~ /^--?(.+)/) { # unrecognized option
die "Unknown option: $1\n";
} else {