Skip to content

Commit

Permalink
Docker: support "PlusRecommended" hint to also provide recommended pa…
Browse files Browse the repository at this point in the history
…ckages

This is analoguos to Kiwi's "plusRecommended" pattern type.
  • Loading branch information
mlschroe committed Sep 27, 2023
1 parent 1a8b6a8 commit b91d101
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Build/Docker.pm
Expand Up @@ -205,6 +205,7 @@ sub parse {
my ($cf, $fn) = @_;

my $unorderedrepos;
my $plusrecommended;
my $useobsrepositories;
my $nosquash;
my $dockerfile_data;
Expand Down Expand Up @@ -267,6 +268,9 @@ sub parse {
if ($line =~ /^#!UnorderedRepos\s*$/) {
$unorderedrepos = 1;
}
if ($line =~ /^#!PlusRecommended\s*$/) {
$plusrecommended = 1;
}
if ($line =~ /^#!UseOBSRepositories\s*$/) {
$useobsrepositories = 1;
}
Expand Down Expand Up @@ -390,6 +394,7 @@ sub parse {
}
}
}
push @{$ret->{'deps'}}, '--dorecommends--', '--dosupplements--' if $plusrecommended;
push @{$ret->{'deps'}}, '--unorderedimagerepos' if $unorderedrepos;
my $version = $ret->{'version'};
my $release = $ret->{'release'};
Expand Down

0 comments on commit b91d101

Please sign in to comment.