summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Legge <timlegge@gmail.com>2018-11-25 02:09:41 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2019-03-20 17:10:15 +0000
commitc8935302937dd7bc561266a79e4682574dea8922 (patch)
tree6df968ff0fceff4f5b79d69ff0b946159696f034
parent27c430cc64e7ea59c7e5610809bac23cc7191d74 (diff)
downloadabuild-c8935302937dd7bc561266a79e4682574dea8922.tar.bz2
abuild-c8935302937dd7bc561266a79e4682574dea8922.tar.xz
Fix for issue with apkbuild-cpan upgrade
-rw-r--r--apkbuild-cpan.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/apkbuild-cpan.in b/apkbuild-cpan.in
index 62ba4d5..7393082 100644
--- a/apkbuild-cpan.in
+++ b/apkbuild-cpan.in
@@ -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";