summaryrefslogtreecommitdiffstats
path: root/urpmf
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-03-31 14:36:44 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-03-31 14:36:44 +0000
commit2420ddc687f501b4260fe67d275c6de26196b54b (patch)
tree23244ce05112d93516dab5d808b74f745157f2cb /urpmf
parent61d509733ea88bfbc2651985174a91acad970075 (diff)
downloadurpmi-2420ddc687f501b4260fe67d275c6de26196b54b.tar
urpmi-2420ddc687f501b4260fe67d275c6de26196b54b.tar.gz
urpmi-2420ddc687f501b4260fe67d275c6de26196b54b.tar.bz2
urpmi-2420ddc687f501b4260fe67d275c6de26196b54b.tar.xz
urpmi-2420ddc687f501b4260fe67d275c6de26196b54b.zip
- urpmf:
o check usage of -a, -! and the like instead of displaying the ugly "Internal error: syntax error ..."
Diffstat (limited to 'urpmf')
-rwxr-xr-xurpmf3
1 files changed, 2 insertions, 1 deletions
diff --git a/urpmf b/urpmf
index 1b3447c6..31fb499d 100755
--- a/urpmf
+++ b/urpmf
@@ -145,11 +145,12 @@ our $uniq = ''; # --uniq
our $update = 0; # --update
#- globals used in callback
-our $expr; # regexp to match against
+our ($expr, $left_expr); # regexp to match against
our %uniq;
#- parse arguments list.
my $urpm = urpm->new_parse_cmdline or exit(1);
+defined $left_expr and $urpm->{fatal}(1, N("unterminated expression (%s)", $left_expr));
defined $expr or usage();
if ($qf eq '%default') {