Last active
December 9, 2022 03:02
-
-
Save obfusk/0eb15aac7ce68225bbd7c0cf75061d39 to your computer and use it in GitHub Desktop.
-> https://github.com/obfusk/fdroid-misc-scripts | find differences between the F-Droid index and fdroiddata
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
| #!/bin/bash | |
| set -e | |
| jq -r '.apps[].packageName' < index-v1.json | sort > index-apps | |
| ( cd fdroiddata/metadata; ls *.yml ) | sed 's!\.yml$!!' | sort > metadata-apps | |
| ( cd fdroiddata/metadata; grep -l 'ArchivePolicy: 0' *.yml ) | sed 's!\.yml$!!' | sort > metadata-apps-archived | |
| diff -Naur metadata-apps metadata-apps-archived | grep ^- | cut -c2- | tail -n +2 > metadata-apps-not-archived | |
| diff -Naur index-apps metadata-apps-not-archived | grep ^- | cut -c2- | tail -n +2 > index-apps-not-in-metadata | |
| diff -Naur index-apps metadata-apps-not-archived | grep ^+ | cut -c2- | tail -n +2 > metadata-apps-not-in-index |
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
| #!/usr/bin/python3 | |
| import sys, yaml | |
| for line in sys.stdin: | |
| appid = line.strip() | |
| with open(f"fdroiddata/metadata/{appid}.yml") as fh: | |
| m = yaml.safe_load(fh.read()) | |
| for b in reversed(m["Builds"]): | |
| if not "disable" in b: | |
| print(f"{appid} version={b['versionName']} code={b['versionCode']}") | |
| break |
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
| #!/bin/bash | |
| set -e | |
| wget -- https://f-droid.org/repo/index-v1.jar | |
| apksigtool verify-v1 --allow-unsafe=SHA1 --signed-by=43238d512c1e5eb2d6569f4a3afbf5523418b82e0a3ed1552770abb9a9c9ccab: index-v1.jar | |
| unzip index-v1.jar index-v1.json |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://gitlab.com/fdroid/fdroiddata/-/issues/2840#note_1193710719