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
appdata -> metainfo, add support for metainfo files #98
Conversation
Can one of the admins verify this patch? |
be38510
to
5cf8c9d
Compare
;; | ||
*.metainfo.xml) | ||
echo "appstream()" | ||
echo "appstream(${instfile##*/metainfo/})" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think for plugins it should not be same...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
*.metainfo.xml
is being used for everything now. You can see this in new KDE AppStream files, and GNOME ones as well. They aren't called *.appdata.xml
anymore.
Wait a sec, those files are appdata, not appstream. Appstream is the data included in repositories. Appdata is the data installed in /usr/share/appdata and /usr/share/metainfo. |
Hmm, apparently there is or was a difference between |
@Conan-Kudo I understand this confusion, as in the early days AppStream was indeed "what distros ship" and the upstream metainfo files followed later, being part of AppStream and making the whole naming a mess. Since naming is especially important for a spec, this stuff is now sorted out properly:
The spec uses this terminology consistently, if you find any place where it is misleading or ambiguous, please file a bug against AppStream :-) So, IMHO either |
@ximion Would |
I think I want to just leave it as |
The naming will never change again, unless we have a really really good reason for breakage (and I see none there). |
6d194ff
to
3e02fef
Compare
@ximion I've elected to change everything to |
These provides are specifically for packages providing AppStream files, which are either going to be *.appdata.xml or *.metainfo.xml files in /usr/share/appdata or /usr/share/metainfo. The upstream AppStream specification mandates *.metainfo.xml files installed into /usr/share/metainfo, but there's still a large body of legacy AppStream files installed in the legacy location. For now, let's support both under the new metainfo() Provides.
3e02fef
to
c04aed1
Compare
Thanks for the patch! Merged. |
How about we remove the appdata provides generator from rpm? It's not used anymore anyway. The reason I added it was so I did not need to fetch the complete package filelist, as /usr/share/appdata is not included in primary.xml. That's why the original generator just added some provides for the file names. It turned out that this approach wasn't very useful, as some packages used pretty much random filenames instead if the ids. So IMHO scrap the thing. Or replace it with some code that parses the xml data. |
@mlschroe I may come back later to make the generator a little smarter, but I wanted the name/path fixed first, as I rely on it for stuff myself. |
These provides are specifically for packages providing AppStream files, which are either going to be
*.appdata.xml
or*.metainfo.xml
files in/usr/share/appdata
or/usr/share/metainfo
.The upstream AppStream specification mandates *.metainfo.xml files installed into
/usr/share/metainfo
, but there's still a large body of legacy AppStream files installed in the legacy location.For now, let's support both under the new
metainfo()
Provides.