summaryrefslogtreecommitdiff
path: root/apkbuild-cpan.in
diff options
context:
space:
mode:
Diffstat (limited to 'apkbuild-cpan.in')
-rw-r--r--apkbuild-cpan.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/apkbuild-cpan.in b/apkbuild-cpan.in
index 92bf2fc..867c508 100644
--- a/apkbuild-cpan.in
+++ b/apkbuild-cpan.in
@@ -371,7 +371,7 @@ given ( $ARGV[0] ) {
when ("upgrade") {
my ($apkbuild, $distdata, $moddata) = get_data;
- my $pkgver = $distdata->{metadata}{version};
+ my $pkgver = $moddata->{version};
if ($pkgver != $apkbuild->{pkgver}) {
say "Upgrading CPAN module from $apkbuild->{pkgver} to $pkgver";
@@ -391,7 +391,7 @@ given ( $ARGV[0] ) {
}
when ('check') {
my ($apkbuild, $distdata, $moddata) = get_data;
- my $pkgver = $distdata->{metadata}{version};
+ my $pkgver = $moddata->{version};
say "$apkbuild->{pkgname}: Latest version: $pkgver Packaged version: $apkbuild->{pkgver}";
if ($pkgver ne $apkbuild->{pkgver}) {
exit(1);