Dne 1.9.2017 v 15:31 Neal Gompa napsal(a):
On Fri, Sep 1, 2017 at 9:12 AM, Marius Vollmer
<marius.vollmer(a)redhat.com> wrote:
> Neal Gompa <ngompa13(a)gmail.com> writes:
>
>> [...] It's already kind of second-class in Fedora because it's not
>> properly integrated into our repodata (like it's supposed to be, and
>> how it is in openSUSE, Mageia, and even in COPR).
>>
>> We should be making AppStream data support first-class, not
>> third-class. :(
>
> This is interesting. Can you point me to more information about
> AppStream and COPR?
There is no documentation. It is as simple as "Copr fully support AppStream".
:)
COPR runs createrepo_c, then appstream-builder, then modifyrepo_c to
create the rpm-md repodata, generate the appstream repodata, and
append the appstream repodata to the rpm-md repodata.
You can see the appstream bundle in the repodata folder:
https://copr-be.cloud.fedoraproject.org/results/mvo/cockpit-app-freeipa/f...
And it's referenced in the repomd.xml file:
https://copr-be.cloud.fedoraproject.org/results/mvo/cockpit-app-freeipa/f...
*nod* Technically speaking we run:
APPDATA_CMD_TEMPLATE = \
"""/usr/bin/timeout --kill-after=240 180 \
/usr/bin/appstream-builder \
--max-threads=4 \
--temp-dir={packages_dir}/tmp \
--cache-dir={packages_dir}/cache \
--packages-dir={packages_dir} \
--output-dir={packages_dir}/appdata \
--basename=appstream \
--include-failed \
--min-icon-size=48 \
--enable-hidpi \
--origin={username}/{projectname}
"""
INCLUDE_APPSTREAM = \
"""/usr/bin/modifyrepo_c \
--no-compress \
{packages_dir}/appdata/appstream.xml.gz \
{packages_dir}/repodata
"""
INCLUDE_ICONS = \
"""/usr/bin/modifyrepo_c \
--no-compress \
{packages_dir}/appdata/appstream-icons.tar.gz \
{packages_dir}/repodata
"""
Mirek