[AppStream] <suggests>

Richard Hughes hughsient at gmail.com
Wed Jul 20 14:58:32 UTC 2016


Hi all,

I've been trying to add <suggests> into appstream-glib. I've got a few
questions:

Is it supposed to be:

<component>
  <suggests type="upstream">
    <id>org.example.Bar.desktop</id>
    <id>...</id>
  </suggests>
  <suggests type="some-other-method">
    <id>org.example.Baz.desktop</id>
    <id>...</id>
  </suggests>
</component>

or:

<component>
  <suggests type="upstream">
    <suggest type="upstream">
      <id>org.example.Bar.desktop</id>
      <id>...</id>
    </suggest>
  </suggests>
</component>

To me the former makes sense, but the tag name doesn't -- in the other
tags a plural means we nest singular terms. Would doing this make more
sense:

<component>
  <suggest type="upstream">
    <id>org.example.Bar.desktop</id>
    <id>...</id>
  </suggest>
  <suggest type="some-other-method">
    <id>org.example.Bar.desktop</id>
    <id>...</id>
  </suggest>
</component>

I don't see the need in a <suggests> parent, although I'd be up for
that if you think it would make sense. Thanks!

Richard


More information about the AppStream mailing list