diff options
author | Kiyoshi Aman <aphrael@alpinelinux.org> | 2011-06-28 11:05:04 -0400 |
---|---|---|
committer | Kiyoshi Aman <aphrael@alpinelinux.org> | 2011-06-28 11:05:04 -0400 |
commit | 178affc406a41b8edef0178125ecdc866b57d7dc (patch) | |
tree | 866ef8e65b8098fa77248ff2ca7840983ddd118a | |
parent | b17e7c1d02ce811ce6e072157980be24d6fc8749 (diff) | |
download | abuild-178affc406a41b8edef0178125ecdc866b57d7dc.tar.gz abuild-178affc406a41b8edef0178125ecdc866b57d7dc.tar.bz2 abuild-178affc406a41b8edef0178125ecdc866b57d7dc.tar.xz abuild-178affc406a41b8edef0178125ecdc866b57d7dc.zip |
apkbuild-cpan: 'check' output format changed; exit code 1 on version mismatch
-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; |