From 2420ddc687f501b4260fe67d275c6de26196b54b Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 31 Mar 2008 14:36:44 +0000 Subject: - urpmf: o check usage of -a, -! and the like instead of displaying the ugly "Internal error: syntax error ..." --- urpmf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'urpmf') 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') { -- cgit v1.2.1