diff --git a/oab-java.sh b/oab-java.sh index d6ed97e..d777299 100755 --- a/oab-java.sh +++ b/oab-java.sh @@ -470,6 +470,9 @@ cd ${WORK_PATH}/ >> "$log" 2>&1 git clone -b ${TAG} ${WORK_PATH}/srcs/${JAVA_UPSTREAM}.git src >> "$log" 2>&1 & pid=$!;progress $pid +# Change prepare.sh to not download the files as we will do it here. +sed -i '/^make.*get-orig-source$/d' src/prepare.sh + # Cet the current Debian package version and package urgency DEB_VERSION=`head -n1 ${WORK_PATH}/src/debian/changelog | cut -d'(' -f2 | cut -d')' -f1 | cut -d'~' -f1` DEB_URGENCY=`head -n1 ${WORK_PATH}/src/debian/changelog | cut -d'=' -f2` @@ -656,10 +659,10 @@ echo "Date: `date -R`" >> Release echo "Architectures: ${LSB_ARCH}" >> Release echo "Components: restricted" >> Release echo "Description: Local Java Repository" >> Release -echo "MD5Sum:" >> Release +echo "SHA512:" >> Release for PACKAGE in Packages* do - printf ' '`md5sum ${PACKAGE} | cut -d' ' -f1`" %16d ${PACKAGE}\n" `wc --bytes ${PACKAGE} | cut -d' ' -f1` >> Release + printf ' '`sha512sum ${PACKAGE} | cut -d' ' -f1`" %16d ${PACKAGE}\n" `wc --bytes ${PACKAGE} | cut -d' ' -f1` >> Release done cecho success @@ -711,7 +714,7 @@ if [ -n "${BUILD_KEY}" ] || [ -e ${WORK_PATH}/gpg/pubring.gpg ] && [ -e ${WORK_P else GPG_OPTION=(--homedir ${WORK_PATH}/gpg) fi - gpg "${GPG_OPTION[@]}" --armor --detach-sign --output ${WORK_PATH}/deb/Release.gpg ${WORK_PATH}/deb/Release >> "$log" 2>&1 & + gpg "${GPG_OPTION[@]}" --digest-algo SHA512 --armor --detach-sign --output ${WORK_PATH}/deb/Release.gpg ${WORK_PATH}/deb/Release >> "$log" 2>&1 & pid=$!;progress $pid if [ -z "${BUILD_KEY}" ] ; then