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
e0e6ee0d
Commit
e0e6ee0d
authored
May 14, 2021
by
Timothy Legge
Committed by
Natanael Copa
Jun 10, 2021
Browse files
apkbuild-cpan.in: prevent inserting extra new line before checksum on upgrade
parent
fbd28a76
Changes
1
Show whitespace changes
Inline
Side-by-side
apkbuild-cpan.in
View file @
e0e6ee0d
...
...
@@ -622,6 +622,10 @@ given ( $ARGV[0] ) {
$text
=~
s/^pkgver=(.*)$/pkgver=$pkgver/mg
or
die
"
Can't find pkgver line in APKBUILD
";
$text
=~
s/^pkgrel=(.*)$/pkgrel=0/mg
;
#FIXME: review whether this works over time
# It deletes the blank line before the checksum
# So prepare_tree does not insert extra blank line
$text
=~
s/\n^(.*sums=.*\n)/$1/mg
;
open
my
$fh
,
'
>
',
"
APKBUILD
"
or
die
;
say
$fh
$text
;
close
$fh
;
...
...
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