Skip to content

Commit

Permalink
Move requiredarch/badarch assignment further down
Browse files Browse the repository at this point in the history
  • Loading branch information
mlschroe committed Oct 2, 2024
1 parent efa6cac commit 8febaf7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Build/Docker.pm
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,6 @@ sub parse {
}
next;
}
$ret->{'exclarch'} = [ unify(@requiredarch) ] if @requiredarch;
$ret->{'badarch'} = [ unify(@badarch) ] if @badarch;
# add continuation lines
while (@lines && $line =~ s/\\[ \t]*$//) {
shift @lines while @lines && $lines[0] =~ /^\s*#/;
Expand Down Expand Up @@ -418,6 +416,8 @@ sub parse {
$ret->{'path'} = [ { 'project' => '_obsrepositories', 'repository' => '' } ] if $useobsrepositories;
$ret->{'nosquash'} = 1 if $nosquash;
$ret->{'basecontainer'} = $basecontainer if $basecontainer;
$ret->{'exclarch'} = [ unify(@requiredarch) ] if @requiredarch;
$ret->{'badarch'} = [ unify(@badarch) ] if @badarch;
if (@containerrepos) {
for (unify(@containerrepos)) {
my @s = split('/', $_, 2);
Expand Down

0 comments on commit 8febaf7

Please sign in to comment.