mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2024-12-23 07:22:53 +00:00
apkbuild-cpan.in: reset the pkgrel if the pkgver changes on recreate
This commit is contained in:
parent
6670e9479d
commit
aaf56ec102
@ -439,6 +439,12 @@ given ( $ARGV[0] ) {
|
||||
when ("recreate") {
|
||||
#TODO: likely should keep pkgrel the same on recreate
|
||||
my ($apkbuild, $distdata, $moddata) = get_data;
|
||||
my $pkgver = $moddata->{version} =~ s/^[^0-9]+//r;
|
||||
if ($pkgver ne $apkbuild->{pkgver}) {
|
||||
#Reset pkgrel on upgrade on recreate
|
||||
say "Upgrading CPAN module from $apkbuild->{pkgver} to $pkgver";
|
||||
$apkbuild->{pkgrel}=0;
|
||||
}
|
||||
write_apkbuild($distdata, $apkbuild->{authors}, $moddata);
|
||||
prepare_tree;
|
||||
update_functions;
|
||||
|
Loading…
Reference in New Issue
Block a user