mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-16 09:40:21 +00:00
parse json first, since different versions have different naming schemes and we need to parse that part afterwards
This commit is contained in:
parent
d0032c7495
commit
efbd416607
1 changed files with 3 additions and 3 deletions
|
@ -8479,6 +8479,9 @@ __macosx_get_packagesite_onedir() {
|
|||
__PY_VERSION_REPO="py3"
|
||||
fi
|
||||
|
||||
if [ "$(echo "$_ONEDIR_REV" | grep -E '^(latest)$')" != "" ]; then
|
||||
_ONEDIR_REV=$(__parse_repo_json_python)
|
||||
fi
|
||||
if [ "$(echo "$_ONEDIR_REV" | grep -E '^(3005)$')" != "" ]; then
|
||||
PKG="salt-${_ONEDIR_REV}-macos-${DARWIN_ARCH}.pkg"
|
||||
else
|
||||
|
@ -8487,9 +8490,6 @@ __macosx_get_packagesite_onedir() {
|
|||
else
|
||||
UNSIGNED=""
|
||||
fi
|
||||
if [ "$(echo "$_ONEDIR_REV" | grep -E '^(latest)$')" != "" ]; then
|
||||
_ONEDIR_REV=$(__parse_repo_json_python)
|
||||
fi
|
||||
PKG="salt-${_ONEDIR_REV}-${__PY_VERSION_REPO}-${DARWIN_ARCH}${UNSIGNED}.pkg"
|
||||
fi
|
||||
SALTPKGCONFURL="https://${_REPO_URL}/${_ONEDIR_DIR}/${__PY_VERSION_REPO}/macos/${_ONEDIR_REV}/${PKG}"
|
||||
|
|
Loading…
Add table
Reference in a new issue