mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2024-12-19 05:34:33 +00:00
apkbuild-cpan.in: prevent inserting extra new line before checksum on upgrade
This commit is contained in:
parent
fbd28a76f0
commit
e0e6ee0d14
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user