Portindex: Add extended mode#200
Conversation
|
@neverpanic, @jmroot: any objections? |
|
Is the intention for this to be a feature you would use locally on that linux server, or that the use of this flag would be incorporated on the server that runs mprsyncup? |
|
We would definitely like to use it locally on the server running the web app since we might potentially want to run Regarding the
|
|
Anything done locally on that server is fine; you can of course apply this change to your local copy of MacPorts already and use it there. If you can run it locally on that server, I'm not sure why you need it to be generated on a different server and distributed to you over the network. As you say there would be additional complications in needing to generate a separate extended copy of the portindex to then be converted to json for the web app to use. I was concerned that this would increase the size of the portindex greatly but it's not that bad really: I don't like the introduction of a flag called The new flag should be included in the |
Once the new changes are deployed, webapp would not need the JSON from the rsync server. Repology uses the normal version of the
Thank you. |
As Arjun already said, we don't really need the extended portindex generated on the server (all I was saying is that if we are already serving the The reason why we would like to see this merged ASAP is not for the sake of being able to generate the extended |
8ab71cf to
7ad34c5
Compare
This commit adds a flag "-x" (for extended mode) which will allow to include more details in the Portindex, like notes, variant description etc.
7ad34c5 to
c9b5f34
Compare
This commit adds a flag
-x(for extended mode) which will allow to include more details in the Portindex, like notes, variant description etc.Why is this needed?
We are trying to add variant
descriptionand portnotesto the ports webapp. By faking the platform (portindex -p), we generate portindex for the latest MacOS and store it in the database. But the server and docker both run Linux, and hence the local ports tree is different from that generated byportindex -p. This rendersport variantsandport notescommands displaying incomplete/inconsistent results.In addition to this, an extended portindex would also simplify the process of updating the database. We would be able to follow a single route, instead of three (which is being done right now).