Skip to content

Commit

Permalink
adapt to TUR
Browse files Browse the repository at this point in the history
  • Loading branch information
knyipab authored and licy183 committed Sep 16, 2024
1 parent e9e0ff3 commit 406d55c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/repology_metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,16 @@ jobs:
run: |
sudo apt update
sudo apt install -yq jq
- name: Clone termux-packages
- name: Clone TUR
run: |
mkdir -p /tmp/repos
git clone https://github.com/termux-user-repository/tur.git /tmp/repos/tur
git clone https://github.com/termux/termux-packages.git /tmp/repos/termux-packages
cp -r /tmp/repos/termux-packages/scripts /tmp/repos/tur/
- name: Generate packages.json
run: |
export TERMUX_SCRIPTDIR=/tmp/repos/termux-packages
bash ./generate-repology-metadata.sh /tmp/repos/termux-packages > ./packages.json
export TERMUX_SCRIPTDIR=/tmp/repos/tur
bash ./generate-repology-metadata.sh /tmp/repos/tur > ./packages.json
if ! jq . ./packages.json > /dev/null; then
echo "Error: invalid packages.json" > /dev/stderr
Expand Down
5 changes: 5 additions & 0 deletions generate-repology-metadata.sh
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,11 @@ export FIRST=yes
echo "["
for repo_path in $(jq --raw-output 'del(.pkg_format) | keys | .[]' $TERMUX_PACKAGES_DIR/repo.json); do
for package_path in $TERMUX_PACKAGES_DIR/$repo_path/*; do
# Check if repo_path starts with 'tur'
if [[ ! "$repo_path" =~ ^tur ]]; then
continue
fi

if [ "$FIRST" = "yes" ]; then
FIRST=no
else
Expand Down

0 comments on commit 406d55c

Please sign in to comment.