chore(scripts/update-checksum): make sure $repo always has a value#27466
Merged
TomJo2000 merged 1 commit intotermux:masterfrom Jan 18, 2026
Merged
Conversation
TomJo2000
commented
Nov 29, 2025
| package=$(basename ${package}) | ||
| # Did we get the package in the form of ${channel}/${package_dir}? | ||
| if [[ -d "${package_dir}" && -f "${package_dir}/build.sh" ]]; then | ||
| repo="${package_dir%\/*}" |
Member
Author
There was a problem hiding this comment.
This is the main fix of the PR.
If the package got passed as <channel>/<package_name>, get the $repo value from it like we do in the case where we need to do the channel lookup.
19a06b7 to
26b9d7c
Compare
Member
Author
|
This PR is temporarily paused pending a request from @Biswa96 to make # Example 1
cd packages/tmux
$TERMUX_SCRIPT_DIR/scripts/bin/update-checksum
# Updates checksum for tmux
# Example 2
cd packages/vim
$TERMUX_SCRIPT_DIR/scripts/bin/update-checksum . ../../x11-packages/vim-gtk
# Updates checksum for vim and vim-gtkIf that does not cover the usecase(s) you had in mind, please let me know. |
This was referenced Jan 19, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I may need to split this out into multiple commits.