[AppStream] xml, convert to dep11 and bundle problem
Juanma Navarro
juanma1980 at gmail.com
Wed Dec 21 12:47:42 UTC 2016
2016-12-21 12:04 GMT+01:00 Matthias Klumpp <matthias at tenstral.net>:
> 2016-12-21 11:05 GMT+01:00 Juanma Navarro <juanma1980 at gmail.com>:
> > Hi all.
> > I'm using appstream build form git (0.10.5) and I've a issue with the
> tag "bundle" when converting from xml to yml.
> > I've defined on the xml a bundle tag for flatpak:
> >
> > <bundle type="flatpak">flatpak_test</bundle>
> >
> > and when I convert with appstreamcli the xml to yml I get:
> >
> > Bundles:
> > - type: limba
> > id: flatpak_test
>
> That's a very strange bug, I'll fix this tonight when I'm back home.
> You can resolve it too though, just making the "!=" a "==" here:
> https://github.com/ximion/appstream/blob/master/src/as-xmldata.c#L1065
> should resolve this issue.
>
> > The first issue is that type shows as "limba" and not "flatpak". The
> second issue is that when I try to load the info (using appstreamglib) the
> bundle doesn't shows unless I change "Bundles:" to "Bundle:". Perhaps this
> last issue is not related to the conversion but with appstreamglib (package
> gir1.2-appstreamglib-1.0). Both issues are easily solvable but I don't know
> if they're a bug or if I'm missing something but I wanted to comment them
> just in case...
>
> This seems to be a bug in AppStreamGlib - as immediate fix I suggest
> to use libappstream instead ;-)
> I assume this will be rather simple to resolve, so I'll submit a patch
> for that later too.
> Looks like the specification is also a bit stupid at that point, so
> I'll clarify that too.
>
> But in any case, what are you trying to do here? The appstreamcli
> conversion is more a debugging tool than for use in production,
> appstream-generator will do the actual metadata based on
> distro-packages.
> And Flatpak handles the bundles tag all on its own, so you should
> basically never have to add it manually.
>
> Cheers,
> Matthias
>
> --
> Debian Developer | Freedesktop-Developer
> I welcome VSRE emails. See http://vsre.info/
>
Well, as I said in my previous message I'm in the process of migrating our
xml appstream to dep11 so I'm using appstreamcli for a fast build of the
yml. In fact at this moment we haven't any flatpak at our repo,.. I now
it's not the right way to go but I'm only trying to generate the file as a
proof-of-concept.
Our needs and the work we're doing to implement the store is long to
explain but it can be summarized in: Never let bureaucrats take technical
decisions or your work we'll get as dirty as their souls... (we develop an
educational distro for our county and have to deal with decisions of
politicians and other "savy people")
Thanks!
--
In soft we trust
More information about the AppStream
mailing list