Skip to content

Commit

Permalink
Do not prefix the base container with "container:"
Browse files Browse the repository at this point in the history
It should be a container tag, not a dependency.
  • Loading branch information
mlschroe committed Nov 8, 2024
1 parent e2227e9 commit 0914519
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions Build/Docker.pm
Original file line number Diff line number Diff line change
Expand Up @@ -350,8 +350,8 @@ sub parse {
push @containerrepos, $prp if $prp;
}
$container .= ':latest' unless $container =~ /:[^:\/]+$/;
$container = "container:$container";
$basecontainer = $container;
$container = "container:$container";
push @{$ret->{'deps'}}, $container unless grep {$_ eq $container} @{$ret->{'deps'}};
}
$as_container{$args[2]} = [ $args[0], $basecontainer ] if @args > 2 && lc($args[1]) eq 'as';
Expand Down Expand Up @@ -400,8 +400,9 @@ sub parse {
}
if ($basecontainer) {
# always put the base container last
@{$ret->{'deps'}} = grep {$_ ne $basecontainer} @{$ret->{'deps'}};
push @{$ret->{'deps'}}, $basecontainer;
my $container = "container:$basecontainer";
@{$ret->{'deps'}} = grep {$_ ne $container} @{$ret->{'deps'}};
push @{$ret->{'deps'}}, $container;
}
push @{$ret->{'deps'}}, '--dorecommends--', '--dosupplements--' if $plusrecommended;
push @{$ret->{'deps'}}, '--unorderedimagerepos' if $unorderedrepos;
Expand Down
2 changes: 1 addition & 1 deletion Build/Kiwi.pm
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ sub kiwiparse {
}
die("derived_from url not using obs:/ scheme: $derived\n") unless defined $name;
push @packages, "container:$name";
$basecontainer = "container:$name";
$basecontainer = $name;
push @containerrepos, $prp if $prp;
}

Expand Down

0 comments on commit 0914519

Please sign in to comment.