Fix for issue with apkbuild-cpan upgrade

This commit is contained in:
Timothy Legge 2018-11-25 02:09:41 +00:00 committed by Natanael Copa
parent 27c430cc64
commit c893530293

View File

@ -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";