Bug 1108037 - Review Request: createrepo_as - A tool to create AppStream metdata
Summary: Review Request: createrepo_as - A tool to create AppStream metdata
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Nobody's working on this, feel free to take it
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-06-11 10:52 UTC by Igor Gnatenko
Modified: 2014-06-17 11:38 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-17 11:38:33 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Igor Gnatenko 2014-06-11 10:52:48 UTC
Spec URL: http://ignatenkobrain.fedorapeople.org/for-review/createrepo_as.spec
SRPM URL: http://ignatenkobrain.fedorapeople.org/for-review/createrepo_as-0.1.0-1.git801136f.fc21.src.rpm
Description:
createrepo_as is a tool that allows us to create AppStream metadata
from a directory of packages. It is typically used when generating
distribution metadata, usually at the same time as modifyrepo or createrepo.

What this tool does:
* Searches a directory of packages and reads just the RPM header of each.
* If a package contains an interesting file, just the relevant
  files are decompressed from the package archive.
* A set of plugins are run on the extracted files, and if these match certain
  criteria CraApplication objects are created.
* Any screenshots referenced are downloaded to a local cache. This is optional
  and can be disabled with --nonet.
* When all the packages are processed, some of the CraApplication objects
  are merged into single applications. This is how fonts are collected.
* The CraApplication objects are serialized to XML and written
  to a compressed archive.
* Any application icons or screenshots referenced are written
  to a .tar archive.
Fedora Account System Username: ignatenkobrain

Comment 3 Dennis Gilmore 2014-06-15 16:25:59 UTC
not that we can't have a standalone package to make AppStream metadata, for use in Fedora's tooling it must be integrated into createrepo

Comment 4 Igor Gnatenko 2014-06-15 16:37:08 UTC
(In reply to Dennis Gilmore from comment #3)
> not that we can't have a standalone package to make AppStream metadata, for
> use in Fedora's tooling it must be integrated into createrepo

because now it's under actively developing I think we can add this package now and when it will be stable merge into createrepo (but I'm not sure. Richard is a developer. not mine).

Comment 5 Richard Hughes 2014-06-16 09:09:34 UTC
(In reply to Dennis Gilmore from comment #3)
> not that we can't have a standalone package to make AppStream metadata, for
> use in Fedora's tooling it must be integrated into createrepo

Igor is right; we're still making additions to the spec and finding edge cases we have to handle. At the moment the complexity and requirement that we call the same code from createrepo and createrepo_c I'm thinking to either make this a GIR introspectable library we can call from python and C, or just a single binary we can call from either tool. We're a few months off doing this tho (although we're getting closer to AppStream 1.0 every day) and having a seporate package would make it much easier for the people running other repos for Fedora and RHEL.

Thanks,

Richard

Comment 6 Richard Hughes 2014-06-17 11:38:33 UTC
This morning I've merged the small tool we need for generation into the appstream-glib package. This makes it easier to track AppStream API changes rather than in two projects and for two release schedules.


Note You need to log in before you can comment on or make changes to this bug.