apkbuild-cpan.in: don't change arch on an upgrade of package
This commit is contained in:
parent
474edd8fd9
commit
fbd28a76f0
|
@ -463,9 +463,11 @@ sub do_depends {
|
|||
die "Can't find pkgdesc line in APKBUILD";
|
||||
}
|
||||
if (length(`find $metaprefix -name '*.xs'`)) {
|
||||
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
|
||||
die "Can't find license line in APKBUILD";
|
||||
|
@ -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