From fef5d5eb0f0c7492fe31c041f5bd81eaf5fa2c6b Mon Sep 17 00:00:00 2001 From: Jiri Slaby Date: Aug 04 2023 10:33:50 +0000 Subject: scripts/lib/SUSE/MyBS.pm: avoid i586 from factory also under openSUSE.org When one uses openSUSE.org: prefix as an IBS project, exclude openSUSE:Factory's i586 too. (And use LEGACYX86 instead.) --- diff --git a/scripts/lib/SUSE/MyBS.pm b/scripts/lib/SUSE/MyBS.pm index 7c36c51..1549ac0 100644 --- a/scripts/lib/SUSE/MyBS.pm +++ b/scripts/lib/SUSE/MyBS.pm @@ -490,7 +490,7 @@ sub get_repo_archs { } if ($element eq "arch" && $self->{has_match}) { # i586 in openSUSE:Factory is excluded from builds - if ($project ne 'openSUSE:Factory' || $self->{cur_string} ne 'i586') { + if ($project !~ '^(openSUSE.org:)?openSUSE:Factory$' || $self->{cur_string} ne 'i586') { push(@{$self->{res}{$self->{repo_name}}}, $self->{cur_string}); } $self->{cur_string} = "";