summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* trivial: Fix a tiny memory leak when mirroring screenshotsRichard Hughes2022-04-131-11/+4
|
* trivial: Be explicit when ignoring return error valuesRichard Hughes2022-04-137-22/+23
|
* trivial: Fix a tiny memory leak on failureRichard Hughes2022-04-131-2/+2
|
* Add vcs-browser and contribute URL typeJakobDev2022-03-302-0/+12
|
* update to spdx 3.16Nick Richards2022-03-151-7/+105
|
* Fix extracting relative symlinksFabian Vogt2022-03-093-46/+10
| | | | | | | | | | | | ebdefa2745 tried to fix handling of relative symlinks in archives, but that only addressed targets starting with ".."/. Fix it properly by using asb_utils_sanitise_path only for absolute paths, keep relative paths as-is. Simplify code for handling absolute symlinks by just prepending the root instead of converting it to a relative link. Hardlink targets are returned as paths relative to the archive root, so the sanitization code is correct there.
* libappstream-builder: Fix file paths in icon tarballFabian Vogt2022-02-161-1/+4
| | | | | | | | | dbd62f6e05 removed the WxH directory from the icon filenames, which were also used as-is for the paths in the icons tarball. However, if width and height are set on the icon, then it has to be inside a size-specific directory. With HiDPI enabled, it did even overwrite the non-HiDPI icon it saved just before because the filenames were the same. Add the subdirectory back in the resource handling code.
* Update Brazilian Portuguese translationMatheus Barbosa2022-02-151-72/+75
| | | | Signed-off-by: Rafael Fontenelle <rffontenelle@gmail.com>
* as-app: Also unwrap description in metainfo filesFabian Vogt2022-02-081-1/+4
| | | | | | | According to the specification, there is no difference between both kinds of upstream metainfo files. Fixes #381
* Fix validation of translated captions when LANG is not CmasterRichard Hughes2021-12-031-3/+3
| | | | Fixes https://github.com/hughsie/appstream-glib/issues/422
* Revert "Don't emit legacy component type values"Richard Hughes2021-12-031-2/+2
| | | | This reverts commit 3fa624026f608ef8465fb339f86725aaf648e09f.
* Don't emit legacy component type valuesMatthias Klumpp2021-08-101-2/+2
|
* Update Polish translationPiotr Drąg2021-08-071-197/+199
|
* 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
* Update Catalan translationJordi Mas2021-08-071-19/+16
|
* Update Swedish translationAnders Jonsson2021-08-031-69/+71
|
* Consider AppStream version as a stringCorentin Noël2021-08-037-76/+127
| | | | | | Always store the AppStream metadata version as a string and compare it like any other version. This allows to have 0.10 > 0.8 for instance.
* meson: Check --version-script linker option before using.Biswapriyo Nath2021-07-272-3/+6
| | | | mingw clang does not support --version-script linker option.
* Update current newest version in AsStoreCorentin Noël2021-07-231-1/+1
| | | | | | We are now in version 0.14 Signed-off-by: Corentin Noël <corentin.noel@collabora.com>
* Update Brazilian Portuguese translationRafael Fontenelle2021-07-131-144/+144
| | | | Translation by Henrique Machado, Proofread by Enrico
* Support em/code tagsPhilip Müller2021-06-152-0/+52
| | | | Some appstream-data packages add <em> and </em> or <code> and </code> to the files. Not all package manager can handle that. An example would be pamac from Manjaro
* Update asb-self-test to match current behaviorOtto Urpelainen2021-05-181-1/+1
| | | | | Apparently, write ordering of some field schanged at some point, but the test case was not updated. Updating to allow Travis CI to pass.
* Add validation for duplicate license xml elementsOtto Urpelainen2021-05-185-3/+24
| | | | | | | | 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.
* builder: make directories as 0755 && umaskPavel Raiskup2021-05-042-2/+2
| | | | | | | | | Ideally only libappstream-builder would be fixed, but asb_utils_ensure_exists is (transitively) called from builder too, so fixing also that. Fixes: #399 Merges: #400
* Update Swedish translationAnders Jonsson2021-04-191-146/+143
|
* Do not show a critical warning on <suggests><id/></suggests>Richard Hughes2021-04-152-1/+24
| | | | Fixes https://github.com/hughsie/appstream-glib/issues/396
* Update Ukrainian translationYuri Chornoivan2021-03-311-21/+16
|
* libappstream-builder: Fix paths for cached iconsPhilip Withnall2021-03-172-19/+11
| | | | | | | | | | | | | | | | | | | As per https://www.freedesktop.org/software/appstream/docs/sect-AppStream-IconCache.html#spec-iconcache-location, the size of an icon should be specified in its `width` and `height` attributes, rather than as part of its name. This was resulting in icons like this in the rpmfusion-free-33 appdata: ``` <icon type="cached" height="128" width="128">128x128/chromium-browser-privacy.png</icon> ``` which were then being resolved to the path: ``` /usr/share/app-info/icons/rpmfusion-free-33/128x128/128x128/chromium-browser-privacy.png ``` which contains a duplicate size subdirectory. Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
* as-util: Fix Markdown underlining in appdata-to-newsPhilip Withnall2021-01-301-2/+2
| | | | | | | Markdown underlines are with `=` or `-`, not `~`. This fixes the Markdown rendering of appdata-to-news-ed files in GitLab. Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
* Replace links http://standards.freedesktop.org/... by https in README.mdLemures Lemniscati2020-12-061-2/+2
| | | | | Replace links http://standards.freedesktop.org/... by https://specifications.freedesktop.org/...
* Replace a link http://www.freedesktop.org/wiki/... by https in README.mdLemures Lemniscati2020-12-061-1/+1
| | | | | Replace a link http://www.freedesktop.org/wiki/... by https://www.freedesktop.org/wiki/...
* as-app: Parse launchables from DEP-11Sebastian Krzyszkowiak2020-12-021-0/+12
|
* as-app: Parse custom tags from DEP-11Sebastian Krzyszkowiak2020-12-021-0/+8
|
* as-content-rating: Align the OARS/CSM mappings of sex-*Philip Withnall2020-10-291-1/+15
| | | | | | | | | Align the OARS/CSM mappings of sex-homosexuality and sex-themes, as the two are identical apart from discriminating on sexual orientation. This is a follow-up to commit 01e9ee8113a8ad. Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
* Update Polish translationPiotr Drąg2020-10-181-24/+15
|
* trivial: post release version bumpRichard Hughes2020-09-072-5/+5
|
* Release version 0.7.18appstream_glib_0_7_18Richard Hughes2020-09-071-0/+16
|
* Don't ignore localized strings that are the same as originalIsaque Galdino2020-06-231-6/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Avoiding storing identical strings is a clever measure to keep the appstream file small and clean, but it ignores translation differences between languages and their specific locales. Applications tend to "fallback" from missing locales by picking a translation of the same language but from a different locale. For instance, when missing a "pt_BR" translation, some apps will pick the "pt" translation instead. That usually works but there are some cases when it doesn't, such as for international words: Brazilian Portuguese (pt_BR) tends to use them, while European Portuguese (pt) has a translation for everything. This way, "GNOME Boxes" gets translated to "Caixas GNOME" in European Portuguese (pt) but the same "GNOME Boxes" name is expected in Brazilian Portuguese (pt_BR). This was initially reported as a Flatpak issue in https://lists.freedesktop.org/archives/flatpak/2019-May/001578.html Because OP was seeing the wrong translations in Flathub and GNOME Software. Original commit was done by @felipeborges in his personal branch at github, commit 54f97aadcd2c00f3d95b472db6e4dda1c0c9865b
* Croatian translation 2nd attempt (#373)milotype2020-06-212-0/+1074
| | | | * Update Croatian translation
* Test launchable tags in validationIan McInerney2020-06-153-2/+41
|
* Add missing dependency to the readmeIan McInerney2020-06-151-1/+1
|
* as-app: Don't initialize mutex twiceKalev Lember2020-06-111-1/+0
| | | | | We managed to merge two MRs to initialize the unique id mutex. Remove one of the g_mutex_init calls to avoid doing it twice.
* as-content-rating: Expand translator comments to link to OARS websitePhilip Withnall2020-06-091-98/+98
| | | | | | This might make the descriptions a little clearer. Signed-off-by: Philip Withnall <withnall@endlessm.com>
* as-content-rating: Lower the OARS/CSM mapping of sex-homosexuality/intensePhilip Withnall2020-06-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | This rationalises it with the OARS/CSM mapping of sex-themes/intense, and with many western societal norms. It is against the laws and morals of various western countries to discriminate on sexual orientation, so the mappings for sex-homosexuality/intense and sex-themes/intense should be the same. The mappings for the other values of sex-homosexuality and sex-themes remain different, as their descriptions aren’t as comparable (for example, for `mild`, the descriptions are “Indirect references to homosexuality” vs “Provocative references or descriptions”). The sex-homosexuality ratings category does need to continue to exist, though, as it’s illegal in some countries to *not* discriminate on sexual orientation. Those countries can provide and maintain their own OARS/age mappings. See https://gitlab.freedesktop.org/pwithnall/malcontent/-/issues/21. This issue is now being solved in appstream-glib as the content rating code has been moved there so it can be shared between malcontent and gnome-software. Signed-off-by: Philip Withnall <withnall@endlessm.com>
* po: Import gs-content-rating.c translations from gnome-softwarePhilip Withnall2020-06-0530-0/+16295
| | | | | | | | | | | | | The translations have been imported unmodified, by updating the local translations (`ninja appstream-glib-update-po`), then catting in the translations from gnome-software (roughly `for i in *.po; do msgcat $i ../gnome-software/po/$i; done`), then updating the local translations again, and cutting off the unnecessary new fuzzy strings. I have not verified any of the translations are correct, as I can’t speak any of these languages. Signed-off-by: Philip Withnall <withnall@endlessm.com>
* po: Update po filesPhilip Withnall2020-06-0530-6373/+11545
| | | | | | This simply reformats them. Done using `ninja appstream-glib-update-po`. Signed-off-by: Philip Withnall <withnall@endlessm.com>
* 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