update stable links of mongodb

This commit is contained in:
z4yx 2020-04-05 15:22:40 +08:00
parent 1f8470972a
commit 794c7ca24a
2 changed files with 8 additions and 5 deletions

View File

@ -75,10 +75,10 @@ def main():
os, comp, arch,
str(args.working_dir.absolute()),
filelist[1] ]
print(shell_args)
# ret = sp.run(shell_args)
# if ret.returncode != 0:
# failed.append((os, comp, arch))
# print(shell_args)
ret = sp.run(shell_args)
if ret.returncode != 0:
failed.append((os, comp, arch))
if len(failed) > 0:
print("Failed APT repos: ", failed)
if args.delete:

View File

@ -54,7 +54,7 @@ if [[ -z ${DRY_RUN:-} ]]; then
fi
for elver in ${RHEL_VERSIONS[@]}; do
[[ -e "${YUM_PATH}/el$elver" ]] || (cd "${YUM_PATH}" && ln -fs "el$elver-${STABLE_VERSION}" el$elver)
[[ -e "${YUM_PATH}/el$elver-${STABLE_VERSION}" ]] && (cd "${YUM_PATH}" && ln -fs "el$elver-${STABLE_VERSION}" el$elver)
done
rm $cfg
@ -69,6 +69,9 @@ for mgver in ${MONGO_VERSIONS[@]}; do
"$apt_sync" "$BASE_URL/apt/ubuntu" "@{ubuntu-lts}/mongodb-org/$mgver" multiverse amd64,i386 "$UBUNTU_PATH"
"$apt_sync" "$BASE_URL/apt/debian" "@{debian-current}/mongodb-org/$mgver" main amd64,i386 "$DEBIAN_PATH"
done
for dist in "$BASE_URL"/apt/*/dists/*/mongodb-org/; do
[[ -e "${dist}/${STABLE_VERSION}" ]] && (cd "${dist}" && ln -fs "${STABLE_VERSION}" stable)
done
echo "APT finished"