Commit 178affc4 authored by Kiyoshi Aman's avatar Kiyoshi Aman
Browse files

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

parent b17e7c1d
...@@ -336,7 +336,10 @@ given ( $ARGV[0] ) { ...@@ -336,7 +336,10 @@ given ( $ARGV[0] ) {
when ('check') { when ('check') {
my ($apkbuild, $distdata) = get_data; my ($apkbuild, $distdata) = get_data;
my $pkgver = $distdata->{releases}[0]->{version}; 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") { when ("update") {
prepare_tree; prepare_tree;
......
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