mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2025-03-10 06:07:33 +00:00
apkbuild-cpan.in: don't change arch on an upgrade of package
This commit is contained in:
parent
474edd8fd9
commit
fbd28a76f0
@ -463,8 +463,10 @@ sub do_depends {
|
||||
die "Can't find pkgdesc line in APKBUILD";
|
||||
}
|
||||
if (length(`find $metaprefix -name '*.xs'`)) {
|
||||
$text =~ s/^arch=\"([^\"]*)\"$/arch="all"/mg or
|
||||
die "Can't find arch line in APKBUILD";
|
||||
if (!exists $oldapkbuild->{'arch'}) {
|
||||
$text =~ s/^arch=\"([^\"]*)\"$/arch="all"/mg or
|
||||
die "Can't find arch line in APKBUILD";
|
||||
}
|
||||
}
|
||||
if ($license ne 'unknown') {
|
||||
$text =~ s/^license=\"([^\"]*)\"$/license=\"$license\"/mg or
|
||||
@ -623,7 +625,6 @@ given ( $ARGV[0] ) {
|
||||
open my $fh, '>', "APKBUILD" or die;
|
||||
say $fh $text;
|
||||
close $fh;
|
||||
|
||||
prepare_tree;
|
||||
do_depends ($moddata->{version}, $apkbuild);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user