forked from platypush/platypush
[CI/CD] A more robust way of detecting the presence of a main version package.
This commit is contained in:
parent
995077eea7
commit
89757d4366
1 changed files with 6 additions and 0 deletions
|
@ -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" ] &&
|
||||||
|
|
Loading…
Reference in a new issue