make portindex2json always work with utf-8 and categories appear as list#2
Conversation
|
What about the other two commits from repology's repo? And are you going to submit your new commit to them? We should try to stay in sync with them if possible, but the categories change will require a corresponding change on the python side for repology. |
|
The other two commits were to add support for opening file instead of stdin. We can also do this change- as being in sync with them is important. |
|
Taking this chance to note that I'd very much like to get rid of this script in Repology. Recently I've dropped many external depends and the script requires two of them (tcl and libtcl) and requires configuring path to tclsh. Macports should switch to usable json export. Maybe by using this scripts themselves. |
|
@AMDmi3: Generating json output immediately after generating portindex and distributing the file alongside sounds reasonably doable. @ryandesign @raimue Just one thing: let's not condition merge of this PR on completion of other tasks (adapting repology to improved json format, distributing json on our mirrors ...) |
|
I still need to test your change, but from the first sight it looks OK. The only (really minor) comment is that:
For example:
|
|
What I meant was that part of this commit is missing: repology/repology-updater@9c084c8 Also, the commit message could contain a reference to that commit, for example:
My idea here was to run What you should do with future PRs is to make your changes in a branch different from |
|
Thank You @mojca , that was such a good thing to learn. Thanks for bearing with me! |
|
The minor whitespace change is still missing, you can commit it separately and then squash changes with interactive rebase. The part of URL after and including |
|
I have fixed the white space change and also the URLs. Thank You |
jmroot
left a comment
There was a problem hiding this comment.
You have added a .DS_Store file in one of the commits. Please remove it (and ideally update .gitignore).
|
Mea culpa. I'll blame the github interface for making it basically invisible. :( |
|
Is force pushing to this repo allowed? |
|
I wouldn't, even if it were. I don't even think you can disable it on GH. Just commit normally and only ever force-push to temporary PR branches that aren't merged yet. |
We have disabled force-pushing in the master of all MacPorts GitHub repositories, including this one (and also in important branches of repositories that have them, like the release branches in macports-base). |
Add startup message before long read and sort op
Change to always work with utf-8 was originally done by @AMDmi3 in repology/helpers/portindex2json/portindex2json.tcl