apkbuild-cpan: 'check' output format changed; exit code 1 on version mismatch

This commit is contained in:
Kiyoshi Aman 2011-06-28 11:05:04 -04:00
parent b17e7c1d02
commit 178affc406

View File

@ -336,7 +336,10 @@ given ( $ARGV[0] ) {
when ('check') {
my ($apkbuild, $distdata) = get_data;
my $pkgver = $distdata->{releases}[0]->{version};
say "Latest version: $pkgver Packaged version: $apkbuild->{pkgver}";
say "$apkbuild->{pkgname}: Latest version: $pkgver Packaged version: $apkbuild->{pkgver}";
if ($pkgver ne $apkbuild->{pkgver}) {
exit(1);
}
}
when ("update") {
prepare_tree;