Skip to content

Commit

Permalink
[backend] bs_publish order scheduler archs lexicographically reverse
Browse files Browse the repository at this point in the history
This should improve the chances that noarch rpms come from the
x86_64 scheduler.
  • Loading branch information
mlschroe committed Feb 13, 2023
1 parent ce815ca commit 6d3f403
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/backend/bs_publish
Original file line number Diff line number Diff line change
Expand Up @@ -2042,6 +2042,11 @@ sub publish {
my %archs = map {$_ => 1} @archs;
# last one wins in code below
@archs = ((grep {!$archorder{$_}} @archs), (grep {$archs{$_}} reverse(@$archorder)));
} else {
# just sort reverse lexicographically. This makes noarch come from x86_64, which
# is also what the product builder does. If you really want the order of the
# repos in the project then you can use a dummy archorder.
@archs = sort {$b cmp $a} @archs;
}

# drop entire repo it source :repo's have disappeared altogether. We need to find a way
Expand Down

0 comments on commit 6d3f403

Please sign in to comment.