[CI/CD] A more robust way of detecting the presence of a main version package.

This commit is contained in:
Fabio Manganiello 2023-12-26 05:08:21 +01:00
parent 995077eea7
commit 89757d4366
Signed by: blacklight
GPG key ID: D90FBA7F76362774

View file

@ -403,6 +403,9 @@ steps:
- cp "$GIT_DEB" "$POOL_PATH" - cp "$GIT_DEB" "$POOL_PATH"
# If main/all/Packages doesn't exist, then we should create the first main release # If main/all/Packages doesn't exist, then we should create the first main release
- |
[ $(ls "$APT_ROOT/pool/$DEB_VERSION/main/$${PKG_NAME}_$${VERSION}-"*"_all.deb" 2>/dev/null | wc -l) -eq 0 ] && export UPDATE_STABLE_PKG=1
- export PKGURL="https://apt.platypush.tech/dists/$DEB_VERSION/main/all/Packages" - export PKGURL="https://apt.platypush.tech/dists/$DEB_VERSION/main/all/Packages"
- | - |
[ -z "$UPDATE_STABLE_PKG" ] && [ -z "$UPDATE_STABLE_PKG" ] &&
@ -495,6 +498,9 @@ steps:
- cp "$GIT_DEB" "$POOL_PATH" - cp "$GIT_DEB" "$POOL_PATH"
# If main/all/Packages doesn't exist, then we should create the first main release # If main/all/Packages doesn't exist, then we should create the first main release
- |
[ $(ls "$APT_ROOT/pool/$DEB_VERSION/main/$${PKG_NAME}_$${VERSION}-"*"_all.deb" 2>/dev/null | wc -l) -eq 0 ] && export UPDATE_STABLE_PKG=1
- export PKGURL="https://apt.platypush.tech/dists/$DEB_VERSION/main/all/Packages" - export PKGURL="https://apt.platypush.tech/dists/$DEB_VERSION/main/all/Packages"
- | - |
[ -z "$UPDATE_STABLE_PKG" ] && [ -z "$UPDATE_STABLE_PKG" ] &&