Skip to content
Snippets Groups Projects
Commit 51026c10 authored by Jakub Jirutka's avatar Jakub Jirutka :flag_ua:
Browse files

community/openjdk8: ensure that pkgver matches source version

parent 2daed3ee
No related branches found
No related tags found
No related merge requests found
......@@ -81,6 +81,11 @@ unpack() {
prepare() {
cd "$builddir"
local ver_u=$(sed -En 's/^JDK_UPDATE_VERSION\s*=\s*(\S+).*/\1/p' Makefile.am)
local ver_b=$(sed -En 's/^BUILD_VERSION\s*=\s*b(\S+).*/\1/p' Makefile.am)
[ "${pkgver#*.}" = "$ver_u.$ver_b" ] \
|| die "Version mismatch, source is 8.$ver_u.$ver_b, but abuild defines $pkgver!"
# Busybox sha256 does not support longopts.
sed -e "s/--check/-c/g" -i Makefile.am
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment