Commit c8935302 authored by Timothy Legge's avatar Timothy Legge Committed by Natanael Copa

Fix for issue with apkbuild-cpan upgrade

parent 27c430cc
......@@ -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";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment