aboutsummaryrefslogtreecommitdiffstats
path: root/URPM
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-06-18 17:20:49 +0000
committerThierry Vignaud <tv@mageia.org>2012-06-18 17:20:49 +0000
commit5883cc7843016674aff56571ca6e688d4dfaaac1 (patch)
tree57a60213f97c69001c096e3f1cc2a7ec4b58ef9d /URPM
parentea3512477800dd3764f246b9e1950726e657c20c (diff)
downloadperl-URPM-5883cc7843016674aff56571ca6e688d4dfaaac1.tar
perl-URPM-5883cc7843016674aff56571ca6e688d4dfaaac1.tar.gz
perl-URPM-5883cc7843016674aff56571ca6e688d4dfaaac1.tar.bz2
perl-URPM-5883cc7843016674aff56571ca6e688d4dfaaac1.tar.xz
perl-URPM-5883cc7843016674aff56571ca6e688d4dfaaac1.zip
provides_overlap() defaults to direction=1
Diffstat (limited to 'URPM')
-rw-r--r--URPM/Resolve.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/URPM/Resolve.pm b/URPM/Resolve.pm
index 68c4aaa..890abbe 100644
--- a/URPM/Resolve.pm
+++ b/URPM/Resolve.pm
@@ -82,7 +82,7 @@ sub find_candidate_packages_ {
$pkg->is_arch_compat or next;
$o_rejected && exists $o_rejected->{$pkg->fullname} and next;
#- check if at least one provide of the package overlap the property.
- !$urpm->{provides}{$name}{$_} || $pkg->provides_overlap($property, 1)
+ !$urpm->{provides}{$name}{$_} || $pkg->provides_overlap($property)
and push @packages, $pkg;
}
}
@@ -490,7 +490,7 @@ sub unsatisfied_requires {
#- check on the selected package if a provide is satisfying the resolution (need to do the ops).
foreach (grep { exists $state->{selected}{$_} } keys %{$urpm->{provides}{$n} || {}}) {
my $p = $urpm->{depslist}[$_];
- !$urpm->{provides}{$n}{$_} || $p->provides_overlap($prop, 1) and next REQUIRES;
+ !$urpm->{provides}{$n}{$_} || $p->provides_overlap($prop) and next REQUIRES;
}
#- check if the package itself provides what is necessary.