Skip to content

Commit

Permalink
revert(abf4495): Introduce backlist to download links
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoninoScordino committed Oct 1, 2024
1 parent cba2352 commit 85d387e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 3 additions & 1 deletion dumpyarabot/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ def _is_matching_build(
return (
params.get("URL") == args.url.unicode_string()
and params.get("USE_ALT_DUMPER") == args.use_alt_dumper
and params.get("ADD_BLACKLIST") == args.add_blacklist
# TODO: @Antonio - Review if we want to check ADD_BLACKLIST for matching builds
# Uncomment the line below if we decide to include ADD_BLACKLIST in the matching criteria
# and params.get("ADD_BLACKLIST") == args.add_blacklist
)
return False

Expand Down
5 changes: 2 additions & 3 deletions extract_and_push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
[[ -z ${PUSH_HOST} ]] && PUSH_HOST="dumps"
[[ -z $ORG ]] && ORG="dumps"
[[ -z ${USE_ALT_DUMPER} ]] && USE_ALT_DUMPER="false"
[[ -z ${ADD_BLACKLIST} ]] && ADD_BLACKLIST="false"

CHAT_ID="-1001412293127"

Expand Down Expand Up @@ -103,7 +102,7 @@ for WHITELISTED_LINKS in "${LIST[@]}"; do
done

## Print if link will be published, or not.
if [ "${ADD_BLACKLIST}" == false ] || [ "${WHITELISTED}" == true ]; then
if [ "${WHITELISTED}" == true ]; then
echo "[INFO] Download link will be published on channel."
else
echo "[INFO] Download link will not be published on channel."
Expand Down Expand Up @@ -851,7 +850,7 @@ commit_head=$(git rev-parse HEAD)
commit_link="https://$GITLAB_SERVER/$ORG/$repo/commit/$commit_head"

## Only add this line in case URL is expected in the whitelist
if [ "${ADD_BLACKLIST}" == false ] || [ "${WHITELISTED}" == true ]; then
if [ "${WHITELISTED}" == true ]; then
link=" | <a href=\"${URL}\">Firmware</a>"
fi

Expand Down

0 comments on commit 85d387e

Please sign in to comment.