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
Doesn't export uncompressed files but apt requires them #4
Comments
|
This is definitely not a bug in APT or asgen, because it works on Debian and Ubuntu with compressed-files only ;-) |
|
It certainly doesn't work in Xenial unless the uncompressed checksum is in the I guess you could say that the process I'm using for putting the I'm not sure what I should do here. My company runs its own repo (packages.sil.org) and we also use PPAs to distribute packages that aren't in the main repos. We're now required to use AppStream to make our apps visible to regular users in Xenial (due to the switch to Gnome Software) but I'm finding it hard to get things working. I have now succeeded in getting the apps from our own repo to show up in |
|
Unfortunate... For the metadata, I think you are running into hughsie/appstream-glib#98 which - as soon as it's fixed - I will propose for SRU at Ubuntu. The other issue you could be running into is that your metadata priority is too low, but if |
|
For Ubuntu, you can follow https://bugs.launchpad.net/ubuntu/+source/appstream-glib/+bug/1576780 now ;-) |
|
I built a package with that diff and tried it. The icons now show up in Thanks very much for your help with this. |
|
You really shouldn't modify |
I get the impression that the provenance plugin in Gnome Software will ignore apps that aren't from an official source. Or does it just mark them in some way and still show them? I haven't been able to get any third-party apps to show up, so I can't really test it :-)
The data isn't fully in the repo yet. I've been working with a local copy of the repo so I could play around and not destabilize things. However, if you're going to take a look at it I'll put my current data in the real one.
I've made sure to do that each time, after seeing what you wrote in Ubuntu 1576780.
There was a problem with that, due to my switching between live and test repos, but even after fixing That's why I was messing with When I run
When I run it manually with full output, I get:
So it looks like the |
|
Hmmm, not sure what I've done wrong. I copied my data to the real repo and disabled the test one on the machine I'm using for testing (a slow laptop). The The problem might be that ---
File: DEP-11
Version: '0.8'
Origin: pso-ubuntu-xenial-universe
MediaBaseUrl: http://packages.sil.org/ubuntu/appstream/mediaThe one it's processed just before does contain some reasonable-looking data. I don't understand why I didn't hit this before when I was using the test repo. |
|
I've also copied the validation output to the repo server. There are some issues, but I don't think any of them are enough to cause major problems. |
|
Urgh... Well, I get everything to work perfectly well here. I just add the repo, stuff shows up in GNOME Software. Thanks for your patience :) There is nothing wrong with the data itself, everything is fine except for the uncompressed files thing, which is IMHO is a reprepro issue. Sorry for the inconvenience, and thank you for pioneering this! (together with Elementary, which seems to hit less issues at time ^^) |
|
As for the "does GS need provenance for the apps to be visible": No, it doesn't - if the data comes from 3rd-party sources, GS will just display a 3rd-party banner below that app. If this now works for you with the new patch, please give some test feedback on https://bugs.launchpad.net/ubuntu/+source/appstream-glib/+bug/1576780 to get that change in faster :-) |
|
Thanks, great work! My apps show up in Gnome Software now. I added the I see that the fix has already gone into sid and yakkety. Hopefully the xenial SRU will kick in soon. I'll add some feedback to LP 1576780 to help things along. It's been good working with you on this, and I appreciate your responsiveness. I'm glad it's helped you get bugs ironed out in the stack. We all benefit in the end. |
I did some more testing, and I found that it goes wrong only if I run the The problem is 100% reproducible with my current data files. I had to mess with |
I had trouble figuring out why
apt-get updatewasn't fetching any of thedep11files from my repo, even though the files were mentioned in theReleasefile. Eventually I discovered that it looks for the uncompressedComponentsandiconsfiles, and then downloads the compressed ones. (It actually downloads.xz, then recompresses as.gz.) So currently I'm having to generate the uncompressed files in a separate step after runningasgen.This is more of a bug in
aptthan inasgenbut sinceaptis out there like this in Xenial right now, it's probably a good idea to match what it expects.The text was updated successfully, but these errors were encountered: