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

apkbuild-cpan.in fix issue with version check

parent 42219985
......@@ -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);
......
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