Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

icon-grid: Simplify installing JSON files #256

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

wjt
Copy link
Member

@wjt wjt commented Apr 5, 2023

Since removing the arch blocklist we don't actually make any changes to
the contents of these files. So, rename them from *.json.in to *.json
and rewrite write-grid-json.py as validate-grid-json.py, calling it as a
test.

This builds on #255 and is even less well tested.

wjt added 3 commits April 5, 2023 21:07
The keys in arch-blacklist.json are the autotools $(host_cpu) variable.
The only key in that file is "arm". But nowadays we only support 64-bit
ARM, for which $(host_cpu) is "aarch64". So this filter now does
nothing.

It doesn't matter, anyway, because the app grid code in Endless OS 3.9
and later just hides empty folders.

Remove the blacklist logic, which also removes some problematic
terminology from our distro.
- All Python dicts are now order-preserving.
- makedirs() has an exist_ok argument.
- argparse.FileType has actually been around for a long time.
Since removing the arch blocklist we don't actually make any changes to
the contents of these files. So, rename them from *.json.in to *.json
and rewrite write-grid-json.py as validate-grid-json.py, calling it as a
test.
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.

1 participant