aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rw-r--r--URPM/Resolve.pm4
2 files changed, 4 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index 45b67ba..2a08980 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- workaround a segfault (mga#8158)
+
Version 4.17 - 19 November 2012
- bump threshold for detecting looping forever (mga#8106)
diff --git a/URPM/Resolve.pm b/URPM/Resolve.pm
index a906ea5..6ac7ad6 100644
--- a/URPM/Resolve.pm
+++ b/URPM/Resolve.pm
@@ -491,14 +491,14 @@ sub unsatisfied_requires {
#- check on installed system if a package which is not obsoleted is satisfying the require.
my $satisfied = 0;
if ($n =~ m!^/!) {
- $db->traverse_tag_find('path', $n, sub {
+ $db->traverse_tag('path', [ $n ], sub {
my ($p) = @_;
exists $state->{rejected}{$p->fullname} and return;
$state->{cached_installed}{$n}{$p->fullname} = undef;
++$satisfied;
});
} else {
- $db->traverse_tag_find('whatprovides', $n, sub {
+ $db->traverse_tag('whatprovides', [ $n ], sub {
my ($p) = @_;
exists $state->{rejected}{$p->fullname} and return;
foreach ($p->provides) {