summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2001-09-17 10:02:53 +0000
committerFrancois Pons <fpons@mandriva.com>2001-09-17 10:02:53 +0000
commit580d54871a2e07334ff0aa0f0688f1b5bb30d9b2 (patch)
treed80ec382c1edf76b39d570d1d8242cd866cf7911
parente645d13fa17667832b6a81ed8c2edd682b0a0a8d (diff)
downloadurpmi-580d54871a2e07334ff0aa0f0688f1b5bb30d9b2.tar
urpmi-580d54871a2e07334ff0aa0f0688f1b5bb30d9b2.tar.gz
urpmi-580d54871a2e07334ff0aa0f0688f1b5bb30d9b2.tar.bz2
urpmi-580d54871a2e07334ff0aa0f0688f1b5bb30d9b2.tar.xz
urpmi-580d54871a2e07334ff0aa0f0688f1b5bb30d9b2.zip
fixed bad use of urpm library.
-rwxr-xr-xurpmq7
1 files changed, 4 insertions, 3 deletions
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.