apkbuild-cpan.in fix issue with version check

This commit is contained in:
Timothy Legge 2018-11-26 22:02:34 +00:00 committed by Natanael Copa
parent 422199858c
commit ede4203749
1 changed files with 2 additions and 2 deletions

View File

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