Merge pull request #705 from fewtarius/dev
Fix update packages to use the sources variable.
This commit is contained in:
commit
a54934271f
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue