Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
alpine
abuild
Commits
fbd28a76
Commit
fbd28a76
authored
May 14, 2021
by
Timothy Legge
Committed by
Natanael Copa
Jun 10, 2021
Browse files
apkbuild-cpan.in: don't change arch on an upgrade of package
parent
474edd8f
Changes
1
Hide whitespace changes
Inline
Side-by-side
apkbuild-cpan.in
View file @
fbd28a76
...
...
@@ -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
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment