From 580d54871a2e07334ff0aa0f0688f1b5bb30d9b2 Mon Sep 17 00:00:00 2001 From: Francois Pons Date: Mon, 17 Sep 2001 10:02:53 +0000 Subject: fixed bad use of urpm library. --- urpmq | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'urpmq') diff --git a/urpmq b/urpmq index 708ab889..4cbbab53 100755 --- a/urpmq +++ b/urpmq @@ -84,8 +84,9 @@ for (@ARGV) { /r/ and do { $query->{version} = $query->{release} = 1; next }; print STDERR _("urpmq: unknown option \"-%s\", check usage with --help\n", $1); exit(1) } next }; @nextargv and do { my $r = shift @nextargv; $r and $$r = $_; next }; - /\.rpm$/ and do { -r $_ or print STDERR _("urpmq: cannot read rpm file \"%s\"\n", $_), next; - push @files, $_; next }; + /\.rpm$/ and do { if (-r $_) { push @files, $_; } + else { print STDERR _("urpmq: cannot read rpm file \"%s\"\n", $_); } + next }; push @names, $_; } @@ -105,7 +106,7 @@ if (@files) { $query->{use_provides} or $urpm->read_provides; #- build closure with local package and return list of names. - push @names, $urpm->register_local_packages(@files); + push @names, $urpm->register_local_packages($query->{minimal}, @files); } #- reparse whole internal depslist to match against newer packages only. -- cgit v1.2.1