Skip to content

enhance(scripts/updates): log tag parsing failures#30034

Open
TomJo2000 wants to merge 1 commit into
termux:masterfrom
TomJo2000:log-auto-update-parse-errors
Open

enhance(scripts/updates): log tag parsing failures#30034
TomJo2000 wants to merge 1 commit into
termux:masterfrom
TomJo2000:log-auto-update-parse-errors

Conversation

@TomJo2000
Copy link
Copy Markdown
Member

@TomJo2000 TomJo2000 commented Jun 3, 2026

That should at least give us some more insight.
Throwing in the entire $TERMUX_REPOLOGY_DATA_FILE on a repology parse failure might be overkill, but we can filter that down once we know what the failure mode for that looks like.

@TomJo2000 TomJo2000 force-pushed the log-auto-update-parse-errors branch 2 times, most recently from 995f32a to 859fed9 Compare June 3, 2026 22:50
Comment on lines -18 to -19
# Why `--arg`? See: https://stackoverflow.com/a/54674832/15086226; `sub` strips the leading 'v'
jq -r --arg pkg "$1" '.[$pkg] // "null" | sub("^v";"")' "$TERMUX_REPOLOGY_DATA_FILE"
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since I removed the | sub("^v";"") part of the jq expression it felt appropriate to update the comment as well.
The prefix stripping is done by termux_pkg_upgrade_version.

# Remove any leading non-digits as that would not be a valid version.
# shellcheck disable=SC2001 # This is something parameter expansion can't handle well, so we use sed.
LATEST_VERSION="$(sed -e "s/^[^0-9]*//" <<< "$LATEST_VERSION")"

We already made the analogous change to termux_git{hub,lab}_api_get_tag in #27576 (61a53e3).

@TomJo2000 TomJo2000 force-pushed the log-auto-update-parse-errors branch from 859fed9 to 3bdf213 Compare June 3, 2026 22:58
@TomJo2000 TomJo2000 changed the title enhance(scripts/updates): log failures in parsing version tags enhance(scripts/updates): log tag parsing failures Jun 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Auto update failing for libdav1d

1 participant