summaryrefslogtreecommitdiffstats
path: root/urpm/args.pm
diff options
context:
space:
mode:
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 {