Fix update packages to use the sources variable.

This commit is contained in:
fewtarius 2022-11-03 08:13:42 -04:00
parent 0d550304bc
commit 165a81e941
No known key found for this signature in database
GPG key ID: F4AE55305D1B8C1A

View file

@ -52,9 +52,9 @@ update_packages() {
source "${f}"
./scripts/get "${PKG_NAME}" >/dev/null
if [ "${p}" != "linux" ]; then
SHA=$(cat ./sources/${PKG_NAME}/${PKG_NAME}-${UPS_VERSION}.*.sha256 ||:)
SHA=$(cat ./${SOURCES_DIR}/${PKG_NAME}/${PKG_NAME}-${UPS_VERSION}.*.sha256 ||:)
else
SHA=$(cat ./sources/${PKG_NAME}/linux-$LINUX-${UPS_VERSION}.tar.gz.sha256 ||:)
SHA=$(cat ./${SOURCES_DIR}/${PKG_NAME}/linux-$LINUX-${UPS_VERSION}.tar.gz.sha256 ||:)
fi
sed -e "/PKG_VERSION=\"${UPS_VERSION}\"/{ N; s/PKG_VERSION=\"${UPS_VERSION}\".*PKG_SHA256=\"\"/PKG_VERSION=\"${UPS_VERSION}\"\nPKG_SHA256=\"${SHA}\"/;}" -i ${f}
else