summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2002-06-07 07:27:59 +0000
committerFrancois Pons <fpons@mandriva.com>2002-06-07 07:27:59 +0000
commit8d815c08bc6fc8afdbca084d263af54f5c13ee39 (patch)
tree334fa8f4607d6a8cc72020f5036a5453d81547ed /urpm.pm
parentdcf2567bdd4ee2ae49d4afe79014371e4c38f763 (diff)
downloadurpmi-8d815c08bc6fc8afdbca084d263af54f5c13ee39.tar
urpmi-8d815c08bc6fc8afdbca084d263af54f5c13ee39.tar.gz
urpmi-8d815c08bc6fc8afdbca084d263af54f5c13ee39.tar.bz2
urpmi-8d815c08bc6fc8afdbca084d263af54f5c13ee39.tar.xz
urpmi-8d815c08bc6fc8afdbca084d263af54f5c13ee39.zip
3.4-6mdk
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm7
1 files changed, 4 insertions, 3 deletions
diff --git a/urpm.pm b/urpm.pm
index 4954594f..8e04b59f 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -1304,6 +1304,7 @@ sub search_packages {
my (%exact, %exact_a, %exact_ra, %found, %foundi);
foreach my $v (@$names) {
+ print "search $v\n";
#- it is a way of speedup, providing the name of a package directly help
#- to find the package.
#- this is necessary if providing a name list of package to upgrade.
@@ -1320,7 +1321,7 @@ sub search_packages {
if ($options{use_provides}) {
unless ($options{fuzzy}) {
#- try to search through provides.
- if (my @l = grep { defined $_ } map { $_ && ($options{src} ? $_->arch eq 'src' : $_->arch ne 'src') &&
+ if (my @l = grep { defined $_ } map { $_ && ($options{src} ? $_->arch eq 'src' : $_->is_arch_compat) &&
$_->id || undef } map { $urpm->{depslist}[$_] }
keys %{$urpm->{provides}{$v} || {}}) {
#- we assume that if the there is at least one package providing the resource exactly,
@@ -1703,8 +1704,8 @@ sub deselect_unwanted_packages {
foreach (keys %{$urpm->{provides}{$_} || {}}) {
my $pkg = $urpm->{depslist}[$_] or next;
$pkg->arch eq 'src' and next; #- never ignore source package.
- $options{force} || (exists $packages->{$pkg->id} && defined $packages->{$pkg->id})
- and delete $packages->{$pkg->id};
+ $options{force} || (exists $packages->{$_} && defined $packages->{$_})
+ and delete $packages->{$_};
}
}
close F;