diff options
Diffstat (limited to 'apkbuild-cpan.in')
-rwxr-xr-x | apkbuild-cpan.in | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apkbuild-cpan.in b/apkbuild-cpan.in index d96a4b7..9cf935a 100755 --- a/apkbuild-cpan.in +++ b/apkbuild-cpan.in @@ -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; |