Merge pull request #705 from fewtarius/dev

Fix update packages to use the sources variable.
This commit is contained in:
fewtarius 2022-11-03 08:14:17 -04:00 committed by GitHub
commit a54934271f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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