mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2025-01-11 00:59:41 +00:00
Fix for issue with apkbuild-cpan upgrade
This commit is contained in:
parent
27c430cc64
commit
c893530293
@ -117,7 +117,7 @@ sub write_apkbuild {
|
||||
authors => ($authors or "# Contributor: $packager\n# Maintainer: $packager"),
|
||||
pkgname => map_cpan_to_apk($distdata->{metadata}{name}),
|
||||
pkgreal => $distdata->{metadata}{name},
|
||||
pkgver => $distdata->{version},
|
||||
pkgver => $distdata->{metadata}{version},
|
||||
source => $distdata->{download_url},
|
||||
);
|
||||
$template =~ s/\[% (.*?) %\]/$repl{$1}/g;
|
||||
@ -365,7 +365,7 @@ given ( $ARGV[0] ) {
|
||||
when ("upgrade") {
|
||||
my ($apkbuild, $distdata) = get_data;
|
||||
|
||||
my $pkgver = $distdata->{releases}[0]->{version};
|
||||
my $pkgver = $distdata->{metadata}{version};
|
||||
if ($pkgver != $apkbuild->{pkgver}) {
|
||||
say "Upgrading CPAN module from $apkbuild->{pkgver} to $pkgver";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user