summaryrefslogtreecommitdiff
path: root/data
Commit message (Collapse)AuthorAgeFilesLines
* its: Sync with appstreamPiotr Drąg2021-08-071-0/+14
| | | | | | | | | Integrates these commits: https://github.com/ximion/appstream/commit/e42dd0d071f27d74419b04a52a8388e00777cd88 https://github.com/ximion/appstream/commit/71d134e82752be6f8851c65ba0ce8c312a72214c https://github.com/ximion/appstream/commit/8c939f999ebf82c3bbf5ad179b24fd7478a0f1d0 https://github.com/ximion/appstream/commit/51ab4f32c56f5cdc293ba0512f003542b83713fc
* Add validation for duplicate license xml elementsOtto Urpelainen2021-05-181-0/+1
| | | | | | | | AppStream license syntax allows constructs of form "LICENSE1 AND LICENSE2". It is possible to confuse this with writing multiple license xml elements in a metainfo file. In order to spot this type of error, duplicate detection is added for xml elements metadata_license and project_license.
* Test launchable tags in validationIan McInerney2020-06-151-0/+3
|
* util: Complete new validate-version commandFlorian Müllner2020-03-231-0/+3
| | | | | Commit 5cbcfe05ec missed updating appstream-util's bash completion for the new command, do that now.
* trivial: Fix CI by moving 'future' back a bitRichard Hughes2020-01-061-1/+1
| | | | 2020 seemed like such a long time in the future all those years ago...
* trivial: Add a new self test for ${id}/${locale}.qm translationsKalev Lember2019-11-141-0/+0
|
* Modernize the validation requirementsRichard Hughes2019-03-203-2/+28
| | | | | | | | | | | | | | | * Require <content_rating> for any desktop or console application * Make <release> mandatory when validating * Further relax style requirements * Require description for desktop an console apps This changes a lot of things that are now best practice for all apps, and required to be included in Flathub. Use `appstream-util validate-relax` to ignore some new failures and use `appstream-util validate-strict` to bring them back. Fixes: https://github.com/hughsie/appstream-glib/issues/263
* Use the SPDX-License-Identifier in all source filesRichard Hughes2019-02-093-27/+3
|
* Do not parse firmware filesRichard Hughes2018-06-129-165/+0
| | | | Firmware should now be distributed using the LVFS and consumed by fwupd.
* its: Extract release descriptions and agreement sections for translationPiotr Drąg2018-06-101-1/+4
|
* Convert local icons found in metainfo fileswip/hughsie/icons-in-metainfoRichard Hughes2018-05-034-0/+38
| | | | | | | This allows us to support desktop-less components that specify a cached icon. The icon search code has been split into a new plugin that is run after the appdata and desktop plugins have added the AsbApp to the list of available apps.
* Add support for component agreementsRichard Hughes2018-04-113-0/+442
| | | | | This enables a lot of software to comply with the GDPR and also allows us to show translated warning and EULA text to unsuspecting users.
* Do not use an 'enable' prefix for meson argumentsRichard Hughes2017-12-182-4/+4
|
* Prefer /usr/share/metainfo as default path for metainfo filesJeremy Bicha2017-10-231-1/+1
| | | | follow-up from commit 9df56f2
* trivial: Fix the path replacement in the installed testsRichard Hughes2017-09-141-2/+9
|
* Prefer /usr/share/metainfo as default path for metainfo filesMatthias Klumpp2017-08-081-1/+1
| | | | | | | | This makes asglib align with the AppStream spec, which sees /usr/share/metainfo as the canonical location for storing metadata, and /usr/share/appdata as legacy (but still must-be-supported) location. Signed-off-by: Richard Hughes <richard@hughsie.com>
* meson: Install appdata-xml.m4Jeremy Bicha2017-07-291-0/+1
| | | | | | Accidentally dropped when ported to meson Fixes: https://github.com/hughsie/appstream-glib/issues/183
* Validate the <id> format according to the specRichard Hughes2017-06-271-1/+1
|
* build: Conditionally generate man pagesEmmanuele Bassi2017-05-101-1/+1
| | | | | | | Depend on the value of the `enable-man` option, as well as the presence of xsltproc. This is necessary, as not all builders allow connecting to the network to download the XSLT style sheet for turning docbook into man pages, for instance.
* Switch to the meson build system.Richard Hughes2017-05-106-168/+118
|
* Make content_rating a requirement for any component with the 'Game' categoryRichard Hughes2017-03-091-0/+1
| | | | This can be relaxed using the validate-relax command.
* its: add <developer_name> to tags extracted for translation (#156)Piotr Drąg2017-02-271-0/+1
|
* Fail to validate if any release is in the futureRichard Hughes2017-02-211-0/+5
| | | | Fixes: https://github.com/hughsie/appstream-glib/issues/153
* Fail to validate if the release children are in the wrong orderRichard Hughes2017-02-211-0/+10
| | | | | | | The most recent release has to be listed first in the file. Check the version number and release timestamp to verify this. Fixes: https://github.com/hughsie/appstream-glib/issues/153
* Add a test for extracting relative symlinksKalev Lember2016-12-209-11/+21
|
* trivial: Don't include trailing whitespace from AppData filesRichard Hughes2016-12-071-4/+4
| | | | | Translators sometimes leave extra whitespace, so if we're parsing without AS_NODE_FROM_XML_FLAG_LITERAL_TEXT then just swallow the trailing spaces.
* Don't recommend use of DISTCHECK_CONFIGURE_FLAGS (#139)Michael Catanzaro2016-11-101-1/+1
| | | DISTCHECK_CONFIGURE_FLAGS is only for users to override AM_DISTCHECK_CONFIGURE_FLAGS. It's not possible to do if Automake files stomp on that.
* Remove the inf parsing from appstream-glibRichard Hughes2016-08-222-51/+0
| | | | | | | | | | | I don't want to maintain this large chunk of complex code in the main library, especially as it's basically unused except for the validation of .cab files. The latter has a python implmentation as used on the LVFS, so it's really just dead code now. Move the (unused) implementation to libginf for archival, but leave stubs in to avoid upsetting the API/ABI checkers. We can remove the symbols when we next break soname.
* Add as_app_set_branch()Richard Hughes2016-07-311-0/+1
| | | | Also include the branch in the unique-id for equality.
* Load metainfo files if presentRichard Hughes2016-06-131-3/+3
| | | | | | /usr/share/appdata is the old location, but will be supported for a long time. Replaces https://github.com/hughsie/appstream-glib/pull/112
* Allow setting the id prefix and origin using a symlink file nameRichard Hughes2016-06-083-0/+8
| | | | | | | | | | | | | The idea is to encode the scope and user-specified origin in the filename as flatpak remotes have metadata with the filename `appstream.xml.gz` that have origin harcoded to 'flatpak'. We can't set a custom origin when generating the metadata as the remote name is set client side and can be any string the user chooses. It's also expected that something like gnome-software will keep the symlink cache up to date. I'm using ~/.local/share/app-info/xmls at the moment, but if we decide that the data is actually gnome-software specific then it can move.
* yaml: Make icon parser spec compliantMatthias Klumpp2016-04-291-1/+4
| | | | | This makes the parser read new-style cached icons, local and remote icons when they are present in DEP-11 YAML.
* Add a warning when validating in strict mode a file with invalid tagsRichard Hughes2016-02-181-0/+1
| | | | | | | | This doesn't actually tell you what tag is invalid, which is a tradeoff between producing someting and also not slowing parsing down for very broken AppStream metadata files. Fixes: https://github.com/hughsie/appstream-glib/issues/94
* Look in the correct icon directory for yaml filesRichard Hughes2016-02-163-2/+2
| | | | Fixes https://github.com/hughsie/appstream-glib/pull/92
* Remove support for Ubuntu app-install dataRichard Hughes2016-01-273-19/+0
| | | | This is not maintained *at all* and Ubuntu is soon to be shipping AppStream.
* Support the QT translation systemRichard Hughes2016-01-267-2/+22
| | | | Fixes: https://github.com/hughsie/appdata-tools/issues/26
* Support multi-line copyright statementsRichard Hughes2016-01-251-1/+3
| | | | Fixes https://github.com/hughsie/appstream-glib/issues/81
* Add AsTranslation to support <translation> tags in AppData filesRichard Hughes2016-01-252-0/+2
| | | | | This allows upstream to specify the translation domain so we can calculate the language statistics automatically without using hacky heuristics.
* trivial: Fix 'make distcheck' with the new gettext test filesRichard Hughes2016-01-221-0/+2
|
* Add appstream-composeAlexander Larsson2016-01-222-1/+63
| | | | | | | This is a simple app that takes a prefix (default /usr) and a set of app names. It looks for appdata, desktop and icon files with that basename in $prefix/share/[appdata|applications|icons] and generates appstream xml files + icons in (by default) $prefix/share/app-info.
* Allow multiple NLS domains to be specified when searchingRichard Hughes2016-01-212-0/+0
| | | | Also, use the new functionality in the existing gettext builder plugin.
* Only build the test firmware files when using --enable-firmwareRichard Hughes2016-01-211-0/+2
|
* Install gettext ITS rulesDaiki Ueno2016-01-053-0/+22
| | | | | | | Recent gettext release has a feature to allow consumer projects to supply their own string extraction rules for XML files, in ITS format. Gettext itself ships the rules for AppData, but it would be better maintained in the upstream project.
* Check the project_group when validatingRichard Hughes2015-12-301-0/+1
| | | | Fixes https://github.com/hughsie/appstream-glib/issues/73
* Use a MS-style version number when parsing a hex versionRichard Hughes2015-10-183-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | If we're comparing versions that are both converted to strings it doesn't really matter how the strings are stored (e.g. AA.BB.CC.DD or AA.BB.CCDD) as the integer rules still apply **if** we don't remove the prefixed zeros. The only time we have to be careful is where the firmware metainfo uses the triplet and the .inf file uses the hex version format. By using the triplet-style by default we match what Intel and Microsoft are providing in the firmware release notes. Basically: * If you're not using the MS-style versioning scheme, just use hex numbers in both places. * If you don't care about applying the update on Microsoft Windows, just don't supply an .inf file at all. Fixes the other half of https://github.com/hughsie/fwupd/issues/34 This does break API, but we've never had the method in a released version so I think it's fine to break at this stage. Make sure you update fwupd at the same time if you're using git master. The last bit of this fix would to be somehow encode the "display version" onto the AppStream <release> object, but this needs discussion upstream first.
* Do not use the DriverVersion for the inf file versionRichard Hughes2015-10-184-3/+6
| | | | Fixes half of https://github.com/hughsie/fwupd/issues/34
* Use AsStoreCab to read .cab files when building metadataRichard Hughes2015-10-072-1/+5
| | | | There's no point having two implementations of the same thing.
* trivial: Fix tests after a3c4fa9c5f97dffdd747657dfc1e59fa42185b54Richard Hughes2015-10-061-2/+1
|
* trivial: Remove unused test filesRichard Hughes2015-09-163-26/+0
|
* Add support for the flashed firmware provide kindRichard Hughes2015-08-105-8/+12
| | | | | | This allows us to have an ID that isn't tied to the GUID, and also allows us to have one component that targets more than one ESRT GUID. This requires changing the matching logic better, but should match what makes it into AppStream 0.9