Skip to content

Commit

Permalink
Deb.pm: support Build-Depends-Arch
Browse files Browse the repository at this point in the history
Build-Depends-Arch and Build-Conflicts-Arch where added in dpkg 1.16.4.
They are now documented in man deb-src-control(5) and debian policy.
Add support to obs-build as packages in unstable are starting to use
them.
  • Loading branch information
Riku Voipio committed Oct 19, 2017
1 parent 2ed9bc7 commit 9293dea
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Build/Deb.pm
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ sub parse {
@exclarch = sort keys %exclarch;
} elsif ($tag eq 'SOURCE') {
$name = $data;
} elsif ($tag eq 'BUILD-DEPENDS' || $tag eq 'BUILD-CONFLICTS' || $tag eq 'BUILD-IGNORE' || $tag eq 'BUILD-DEPENDS-INDEP') {
} elsif ($tag eq 'BUILD-DEPENDS' || $tag eq 'BUILD-CONFLICTS' || $tag eq 'BUILD-IGNORE' ||
$tag eq 'BUILD-DEPENDS-INDEP' || $tag eq 'BUILD-DEPENDS-ARCH' || $tag eq 'BUILD-CONFLICTS-ARCH' ) {
my @d = split(/\s*,\s*/, $data);
for my $d (@d) {
my @alts = split('\s*\|\s*', $d);
Expand Down Expand Up @@ -163,7 +164,7 @@ sub parse {
$d =~ s/ \(([^\)]*)\)/ $1/g;
$d =~ s/>>/>/g;
$d =~ s/<</</g;
if ($tag eq 'BUILD-DEPENDS' || $tag eq 'BUILD-DEPENDS-INDEP') {
if ($tag eq 'BUILD-DEPENDS' || $tag eq 'BUILD-DEPENDS-INDEP' || $tag eq 'BUILD-DEPENDS-ARCH') {
push @deps, $d;
} else {
push @deps, "-$d";
Expand Down

0 comments on commit 9293dea

Please sign in to comment.