-
Notifications
You must be signed in to change notification settings - Fork 9
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
Control file fields extension #20
Comments
"Section" is an odd choice from opkg instead of something like "Category" or "Type", but it is what it is. ConfiguratorMeta? The whole file is already metadata, it's a bit confusing otherwise maybe? Do we just embed the JSON? Could that get out of hand? Do we want to support URIs (both links and uriencoded data) instead/in addition? |
"ConfiguratorMeta" is fine with me - you are right - less confusing. We can also introduce category or type, I just thought since "category" is there, why not use it. I still need to check what it actually does in opkg context i would imagine you could use that as a filter directly (which since we use the index file itself does not matter too much for us). We could use URI encoded data too. I would prefer to go with either or. Also I need to check, I am pretty sure opkg is using a fixed sized buffer for fields in control files. This does not matter much to us, but might make be problematic with |
Opkg (entware) uses Section, we should probably stick with it. It's just a bit odd. While having loose JSON in the control file slightly triggers me some way, I don't know that it's necessarily a bad solution. Just a thought that occurred. I suppose the downsides of data URIs would be they are harder to edit directly. And actual https:// URI-s are a bit of an attack vector as they can be updated at any moment. Tagging @bri3d for opinions, should he have any. |
Are there any news about Font instalation direct to the googles instead of sd. Then it´s posible to format the sd card anymore without loosing the fonts. I would realy appreciate this. |
The control files field can be extended easily allowing us to add pretty much arbitrary fields to the Package index.
Some of our packages already use the Homepage field, which I will be using to link to the README in the configurator.
Further this also solves the issue for fonts, we can use the native section filed to classify the packages, further we can add arbitrary other fileds, so we could for example expect each package that has the section field set to fonts to also have a screenshot field where we pass URLs to screenshots as JSON (the control file is not a yml) or a more general Meta field:
I would prefer to utilize the Sections filed and the "generic" Meta field which contains all needed information for a specific section type. This would allow us to only need to parse two additional fields in the configurator in order to handle a variety of different package types.
The text was updated successfully, but these errors were encountered: