Skip to content

Commit

Permalink
Apk: do not add checkdepends if the options contain !nocheck
Browse files Browse the repository at this point in the history
  • Loading branch information
mlschroe committed Dec 6, 2024
1 parent e249ec8 commit aa58e12
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions Build/Apk.pm
Original file line number Diff line number Diff line change
Expand Up @@ -395,12 +395,10 @@ sub parse {
$ret->{'version'} = $vars{'pkgver'} if defined $vars{'pkgver'};
$ret->{'release'} = "r$vars{'pkgrel'}" if defined $vars{'pkgrel'};
$ret->{'deps'} = [];
if (!defined $vars{'makedepends'}) {
for (qw{makedepends_build makedepends_host}) {
push @{$ret->{'deps'}}, split(" ", $vars{$_} ) if defined $vars{$_};
}
}
for (qw{makedepends checkdepends depends}) {
my @dnames = qw{depends makedepends};
push @dnames, qw{makedepends_build makedepends_host} unless defined $vars{'makedepends'};
push @dnames, 'checkdepends' unless grep {$_ eq '!check'} split(' ', $vars{'options'} || '');
for (@dnames) {
push @{$ret->{'deps'}}, split(" ", $vars{$_} ) if defined $vars{$_};
}
Expand Down

0 comments on commit aa58e12

Please sign in to comment.