From 72c315d0ff18010dd13c32a0b1b41d4a06f20686 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 27 Feb 2012 20:49:36 +0000 Subject: urpmq: fix non-zero exit code if .rpm file was not found (POK, mdv#64969) --- urpm/args.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'urpm') 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 { -- cgit v1.2.1