Skip to content

Commit

Permalink
Merge pull request #15302 from mlschroe/master
Browse files Browse the repository at this point in the history
[backend] ProductCompose: use BSSolv::kiwiproductcheck if available
  • Loading branch information
adrianschroeter committed Dec 1, 2023
2 parents 4e60df2 + 2ab3bb7 commit cdbaec8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/backend/BSSched/BuildJob/ProductCompose.pm
Original file line number Diff line number Diff line change
Expand Up @@ -383,10 +383,10 @@ sub check {
$pkgs_checked++;

# first find out if we need any rpm from this package
#if (defined &BSSolv::kiwiproductcheck) {
# # use fast C version from perl-BSSolv if available
# next unless BSSolv::kiwiproductcheck($bininfo, $mode, \%unneeded_na, \%deps, \%seen_fn, \%archs);
#} else {
if (defined &BSSolv::kiwiproductcheck) {
# use fast C version from perl-BSSolv if available
next unless BSSolv::kiwiproductcheck($bininfo, $mode, \%unneeded_na, \%deps, \%seen_fn, \%archs);
} else {
# slow pure-perl version
my $needit;
for my $fn (keys %$bininfo) {
Expand Down Expand Up @@ -421,7 +421,7 @@ sub check {
last;
}
next unless $needit;
#}
}

$pkgs_taken++;

Expand Down

0 comments on commit cdbaec8

Please sign in to comment.