Skip to content

Commit 63b7ae2

Browse files
committed
Add horrible workaround for old broken spec files
Unfortunately the old parser allowed an "ExclusiveArch:" line with no argument.
1 parent 470713f commit 63b7ae2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Build/Rpm.pm

+2
Original file line numberDiff line numberDiff line change
@@ -862,6 +862,8 @@ sub parse {
862862
$arg =~ s/\s+$//;
863863
} elsif ($line =~ /^(#!\S+)\s*/) {
864864
$keyword = lc($1);
865+
} elsif (!@subpacks && $line =~ /^ExclusiveArch\s*:/i) {
866+
$exclarch ||= []; # bah! gross compatibility hack for old broken spec files!
865867
}
866868
}
867869

0 commit comments

Comments
 (0)