summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* as-content-rating: Add content rating system APIs from gnome-softwarePhilip Withnall2020-06-054-0/+1054
| | | | | | | | | | | | | | | | | | | | | | | | | | These are moving to libappstream-glib as they are used by gnome-software and libmalcontent-ui, and are potentially useful in other projects. In particular, there are a number of translatable strings which need to be centralised so that translation work isn’t repeated. This code was originally written by: • Richard Hughes <richard@hughsie.com> • Piotr Drąg <piotrdrag@gmail.com> • Philip Withnall <withnall@endlessm.com> • Jordi Mas <jmas@softcatala.org> It was previously in `src/gs-content-rating.[ch]` in gnome-software, under the GPL-2.0+; and in `libmalcontent-ui/gs-content-rating.[ch]` in malcontent, also under the GPL-2.0+. It has been relicensed from GPL-2.0+ to LGPL-2.1+ for the move to appstream-glib, and all the previous contributors have agreed. See https://github.com/hughsie/appstream-glib/pull/364#issuecomment-632773905 and below for their agreements. In moving it from one project to the other, I have added documentation comments and tweaked some of the APIs to make them more usable. Signed-off-by: Philip Withnall <withnall@endlessm.com>
* Allow timestamp in the future in validate-relaxBartłomiej Piotrowski2020-04-241-1/+3
|
* Fix crash with invalid children of <ul/>Fabian Vogt2020-04-222-1/+12
| | | | | | It segfaulted when building the error message as data_c->name was invalid. data_c was a valid tag, so only the data_c->tag union member was active. Fix the crash by calling the proper function instead and add a test case.
* as-app: Properly initialize unique_id_mutexLaurent Bigonville2020-04-161-0/+1
| | | | | That should fix FTBFS on some architectures Fixes: #356
* The AppData files now go to /usr/share/metainfoArtem Polishchuk2020-03-301-1/+1
| | | https://www.freedesktop.org/software/appstream/docs/chap-Quickstart.html#sect-Quickstart-DesktopApps
* 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.
* util: Add "validate-version" commandFlorian Müllner2020-03-221-0/+108
| | | | | | The command validates that an AppData or MetaInfo file includes a release for the specified version. For forgetful maintainers (hi!), this can be a useful test during distcheck.
* trivial: Actually use the correct NEWS contentsRichard Hughes2020-02-201-16/+7
|
* trivial: post release version bumpRichard Hughes2020-02-202-5/+5
|
* Release version 0.7.17appstream_glib_0_7_17Richard Hughes2020-02-202-11/+23
|
* Support versioning on clang/macOSOleksii Samorukov2020-01-172-1/+8
|
* Use ".so" suffix for the plugins on macOSOleksii Samorukov2020-01-171-0/+12
|
* Use internal uuid library in macOSOleksii Samorukov2020-01-173-1/+10
|
* docs: Fix examples of AsNodeToXmlFlags using an invalid flag.Robert Ancell2020-01-172-3/+3
|
* Bump minimum glib2 dependency.Andrew Clemons2020-01-061-1/+1
| | | | | | | | | | | as-app-desktop.c uses g_key_file_load_from_bytes which was added to glib 2.49.3 (see NEWS¹). Additionally as-format.c uses g_canonicalize_filename which was added in 2.58 (commit²) Closes #341. ¹ https://gitlab.gnome.org/GNOME/glib/blob/2.49.3/NEWS#L9 ² https://gitlab.gnome.org/GNOME/glib/commit/b9b642de06e714584e89aa7b8d878a98599538ed#c0e40c6287fb64a7a3d8c9fa35b5e014025da233_175_175
* Update the Fedora CI to F31Richard Hughes2020-01-062-3/+3
|
* trivial: Fix CI by moving 'future' back a bitRichard Hughes2020-01-062-2/+2
| | | | 2020 seemed like such a long time in the future all those years ago...
* Update Galician translationsFran Diéguez2019-12-281-149/+411
|
* as-app: properly initialize unique_id_mutexMarc-Antoine Perennou2019-12-031-0/+1
| | | | | | | | | | We are using it, clearing it, but e never initialize it. For some reasons it seems to work, not sure how or why, but when glib is uilt with clang, then the problem surfaces and we get a nice segmentation fault. Properly initializing it fixes this Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
* Use _fullpath() instead of GetFullPathNameA().Jehan2019-11-251-8/+5
| | | | | | | Win32 docs says that GetFullPathNameA() is not recommended with multi-threaded applications, since it uses a global variable. As appstream-glib is a library and can potentially be used in any software, included in multi-thread cases, let's use _fullpath() instead.
* Fix Win32 headers.Jehan2019-11-251-1/+1
| | | | | | | | | | | For some reason, with mingw-w64 64-bit builds, this was just a warning. But building for 32-bit, linking was failing: > libappstream-glib/as-self-test.c:99: undefined reference to `GetFullPathNameA' > collect2: error: ld returned 1 exit status Adding the appropriate header fixes both the warning and error (since windows.h includes windef.h, it's actually a replacement).
* trivial: Add a new self test for ${id}/${locale}.qm translationsKalev Lember2019-11-142-0/+38
|
* Support ${id}/${locale}.qm in addition to ${id}_${locale}.qmKalev Lember2019-11-141-2/+39
|
* trivial: Move a check earlier so that we exit the correct loopKalev Lember2019-11-141-5/+5
|
* as-app: add "icon-theme" as recognised component typeFabio Valentini2019-11-012-0/+4
|
* trivial: Mark an internal function as staticRichard Hughes2019-10-041-1/+1
|
* trivial: Sync example spec file with downstreamRichard Hughes2019-10-041-15/+7
|
* as-content-rating: Make default values match OARS semanticsPhilip Withnall2019-10-022-30/+106
| | | | | | | | | | | If an OARS key is missing from a `<content_rating/>` element, the default value should be `none`, not `unknown`. Change the implementation of `as_content_rating_get_value()` to do that, and add some tests. See the OARS specification: https://github.com/hughsie/oars/blob/master/specification/oars-1.1.md Signed-off-by: Philip Withnall <withnall@endlessm.com>
* trivial: post release version bumpRichard Hughes2019-09-302-5/+5
|
* Release version 0.7.16appstream_glib_0_7_16Richard Hughes2019-09-3015-9/+409
|
* Allow parsing desktop files using as_app_parse_data()Richard Hughes2019-09-303-51/+80
| | | | This fixes showing local apps in GNOME Software without AppStream information.
* Update list of allowed metadata licencesscx2019-09-191-1/+11
| | | | Fixes hughsie/appstream-glib#323
* Log expected and actual screenshot dimensions when failingTobias Mueller2019-09-131-6/+6
| | | | | | Sometimes it is quite helpful to see the values the validator objects. Especially when it is hard to comprehend why the validation fails if one has, say, an image in a stale cache which the validator does not have.
* docs: remove SQLite dependencyJan Tojnar2019-08-273-5/+3
| | | | | The dependency was removed in f1cdbd834f5baf5db5c7d73849161b186a2d9c54 and 8c58e47632f1e3da2723e57b2cb1bf775da37234. Let's update docs accordingly.
* Offset future checks by UTC+14Peter Hutterer2019-08-271-1/+2
| | | | | | | | | | | | The timestamp comes from a converted release date but it is in UTC. So anyone east of UTC will get a "timestamp is in the future" warning for today's date until UTC ticks past midnight. According to Wikipedia the highest offset is UTC+14 so let's offset our time by that much. This way we treat "today" as valid release date anywhere on the planet. Fixes https://github.com/hughsie/appstream-glib/issues/317
* Do not preserve restrictive permissions when installing AppStream filesRichard Hughes2019-08-072-3/+2
| | | | Fixes https://github.com/hughsie/appstream-glib/issues/312
* Support loading YAML from as_store_from_bytesRobert Ancell2019-08-051-21/+69
|
* Do not allow forward or backwards slashes in <id> valuesRichard Hughes2019-06-101-0/+5
|
* Do not require <translation> for validation unless strictKalev Lember2019-05-172-8/+4
| | | | | | Flathub is already patching appstream-glib to remove this check. Fixes https://github.com/hughsie/appstream-glib/issues/302
* Do not require <update_contact> for validation unless strictRichard Hughes2019-05-142-8/+4
| | | | Fixes some of https://github.com/hughsie/appstream-glib/issues/302
* add UPL short name to SPDX conversionSalman Siddiqui2019-04-091-0/+1
|
* Update the SPDX license list to v3.5Richard Hughes2019-04-091-25/+44
|
* as-compose: Remove relative path from icon namesDavid Hewitt2019-04-091-8/+4
|
* Allow non-desktop components to be extendedRichard Hughes2019-04-091-2/+0
| | | | There's no obvious reason why we should restrict this in the generator.
* trivial: Fix some typos spotted using codespellRichard Hughes2019-04-0818-28/+28
|
* Only require <release> for validate, but not validate-relaxKalev Lember2019-03-291-4/+7
| | | | | | The plan was to require <release> for validate, so that we would be able to require a version number for flathub, but it accidentally got enabled for validate-relax as well.
* Allow building on WindowsJehan2019-03-2613-36/+140
| | | | Signed-off-by: Richard Hughes <richard@hughsie.com>
* Modernize the validation requirementsRichard Hughes2019-03-205-48/+165
| | | | | | | | | | | | | | | * 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
* trivial: post release version bumpRichard Hughes2019-02-283-4/+5
|
* Release version 0.7.15appstream_glib_0_7_15Richard Hughes2019-02-2830-229/+431
|