Commit fbd28a76 authored by Timothy Legge's avatar Timothy Legge Committed by Natanael Copa
Browse files

apkbuild-cpan.in: don't change arch on an upgrade of package

parent 474edd8f
......@@ -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 {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment