summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Veto apps that have empty OnlyShowIn=wip/kalev/veto-empty-onlyshowinKalev Lember2018-04-171-1/+4
| | | | | | | | Apps that have OnlyShowIn= are equivalent to NoDisplay=True. Veto such apps to avoid them inadvertently showing up. https://bugzilla.redhat.com/show_bug.cgi?id=1567689 https://gitlab.gnome.org/GNOME/gnome-software/issues/367
* trivial: Add the missing <requires> enum typesRichard Hughes2018-04-122-0/+18
|
* Add support for component agreementsRichard Hughes2018-04-1118-2/+1562
| | | | | 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.
* Correctly compare version numbers like '1.2.3' and '1.2.3a'Richard Hughes2018-04-092-33/+28
| | | | | | Only switch to the string comparison after the numeric part has been used. Fixes https://github.com/hughsie/appstream-glib/issues/231
* Don't include the path component in the name when parsing the package filenameRichard Hughes2018-03-272-5/+17
| | | | | | | | If the guessing fails, we fall back to the arch/rpm/deb-derived name but we don't want to show weird things in the logs. Fixes https://github.com/hughsie/appstream-glib/issues/228, many thanks to Andrew Gunnerson for the initial patch.
* Add as_utils_unique_id_match()Richard Hughes2018-03-153-7/+78
| | | | This allows us to whitelist the sections that have to match.
* trivial: post release version bumpRichard Hughes2018-03-132-5/+5
|
* Release version 0.7.7appstream_glib_0_7_7Richard Hughes2018-03-1330-552/+1080
|
* Use shell-extensions::uuid for custom shell extensions metadata keyKalev Lember2018-03-131-1/+1
| | | | | ... to match with what the shell extensions plugin in gnome-software does.
* trivial: Fix the introspection for as_app_get_metadata()Richard Hughes2018-03-121-1/+1
|
* Always resize AppStream icons to fit the destination sizeRichard Hughes2018-03-092-1/+3
| | | | | Padding is no longer being used as it makes the software center look bad. Lets make the application author look bad instead so they can fix the icon.
* Add AS_IMAGE_LOAD_FLAG_ALWAYS_RESIZE to always resize the pixbufRichard Hughes2018-03-092-0/+13
| | | | This will of course make it look blurry in most cases.
* trivial: Fix up a build warning from a recent commitRichard Hughes2018-03-081-1/+1
|
* Correctly validate files using OR in the metadata_licenseRichard Hughes2018-03-081-10/+38
| | | | | | | | | | | Althought the correct way to do this would be to construct a GTree structure, splitting on AND and brackets, and having children of OR, I don't have a spare weekend to implement this and then write all the tests. This simplistic parser will correctly validate more files and that's good enough for now. Fixes https://github.com/hughsie/appstream-glib/issues/226
* Update the SPDX license list to v3.0Richard Hughes2018-03-083-116/+164
| | | | | | | | | The SPDX team have decided to rename quite a few common tags (with the '-only' and '-or-later') suffixes and this unfortunately breaks the world. Convert the new-style v3 style IDs to the v2 style and thus accept both forms. Fixes https://github.com/hughsie/appstream-glib/issues/225
* trivial: Add missing 'fur' translationRichard Hughes2018-03-011-0/+1
| | | | Fixes https://github.com/hughsie/appstream-glib/issues/224
* Don't abort the build if pngquant failsRichard Hughes2018-03-012-4/+9
| | | | | Sometimes it returns a return code 25088 (which is 0x6200) which isn't an error code in rwpng.h -- we can't really trust pngquant so just log the warning.
* trivial: Never add duplicated <requires> nodes for componentsRichard Hughes2018-02-233-0/+46
|
* Add custom metadata key for shell extension uuidKalev Lember2018-02-221-1/+2
| | | | | ... and convert the appstream ID to be compatible with what gnome-tweaks uses (@'s replaced with _ and no .shell-extension at the end).
* Do not fail to validate if the timestamps are out of orderRichard Hughes2018-02-212-24/+2
| | | | | | | | If we use the same metainfo.xml file for unstable and stable releases we can't sort by 'version' *and* 'timestamp'. Pick the former so versions from the same branch can be grouped together. Fixes https://github.com/hughsie/appstream-glib/issues/222
* Treat pngquant exit code of 98 (nothing done) as successRichard Hughes2018-02-211-1/+1
| | | | Fixes https://github.com/hughsie/appstream-glib/issues/223
* trivial: post release version bumpRichard Hughes2018-02-092-5/+5
|
* Release version 0.7.6appstream_glib_0_7_6Richard Hughes2018-02-092-1/+13
|
* Never include '&' in attribute valuesRichard Hughes2018-01-302-4/+9
| | | | Fixes: https://github.com/hughsie/lvfs-website/issues/33
* Add support for release typesRichard Hughes2018-01-253-4/+115
| | | | These are used to identify development or stable release information.
* Fix an invalid read when using as_app_parse_data() from PythonRichard Hughes2018-01-244-22/+79
| | | | | | | | Using GObject Introspection we were creating an object using GLib.Bytes.new(buf) where buf was a python str object. This created a GBytes object with no trailing NUL char but we were expecting a NUL-terminated string when both doing fnmatch() and also processing the XML. Support this by guarding fnmatch and also by using the string length when using the GMarkupParseContext.
* as-app-desktop: don't deference invalid listsMarco Trevisan (Treviño)2018-01-231-4/+4
| | | | | Malformed .desktop files might causes crashes when returned lists are NULL.
* trivial: post release version bumpRichard Hughes2018-01-222-5/+5
|
* Release version 0.7.5appstream_glib_0_7_5Richard Hughes2018-01-2228-174/+711
|
* Don't expect an enum when really passing a bitfieldRichard Hughes2018-01-225-77/+71
| | | | | The size of an enum is undefined for most compilers (although, GCC normally does something sensible) but be explicit to avoid changing ABI accidentally.
* Add more GObject Introspection annotations for PythonRichard Hughes2018-01-224-20/+20
|
* Fix a crash when calling as_release_add_location() directlyRichard Hughes2018-01-221-0/+1
|
* trivial: Add missing types from the IntrospectionRichard Hughes2018-01-221-0/+2
|
* Explicitly require a new enough json-glibRichard Hughes2018-01-151-1/+1
| | | | Fixes https://github.com/hughsie/appstream-glib/issues/218
* trivial: Fix regression when parsing XML AppData filesRichard Hughes2017-12-191-1/+1
|
* Do not use an 'enable' prefix for meson argumentsRichard Hughes2017-12-1814-89/+84
|
* Describe connection problems/HTTP errors when validating imagessuve2017-12-171-3/+11
|
* Add as_app_parse_data()Richard Hughes2017-12-152-37/+63
| | | | This allows us to parse an AsApp object from a blob of memory.
* Add as_store_get_apps_by_provide()Richard Hughes2017-12-143-0/+55
| | | | More than one component in an AppStream file may define the same provide.
* Fix compile with GCab v1.0Richard Hughes2017-12-142-1/+4
|
* trivial: Check for duplicate content ratings sections with the same kindRichard Hughes2017-12-093-0/+19
|
* Support OARS v1.1 additionsRichard Hughes2017-12-091-1/+35
|
* Never change the default screenshot when processing AppDataRichard Hughes2017-12-092-0/+31
| | | | Fixes https://github.com/hughsie/appstream-glib/issues/210
* Fix appstream-compose when using new-style desktop IDsRichard Hughes2017-12-071-6/+10
| | | | | | The .desktop suffix is now optional in the AppStream component <id>. Fixes: https://github.com/hughsie/appstream-glib/issues/209
* Don’t fall back to en if other languages are available.Peter Oliver2017-11-301-3/+1
| | | | Languages may have been pre-added based on the information in `metainfo.xml` files, so just because we didn’t auto-detect a language doesn’t mean that none are present. Fixes #207.
* Generate icons and samples for emoji fonts.Peter Oliver2017-11-211-0/+2
|
* Trivial: Set minimal required version for pngquant in the sample .spec fileDominique Leuenberger2017-11-161-1/+1
| | | | | commit 562772 introduced the usage of pngquant (by calling out to the binary) and makes use of the --strip parameter, which was introduced in version 2.8 of pngquant.
* Use pngquant to make the application icons take up less spaceRichard Hughes2017-11-144-0/+42
| | | | Fixes https://github.com/hughsie/appstream-glib/issues/203
* Do not try to extract duplicate files in the icon theme packagesRichard Hughes2017-11-131-0/+5
| | | | Fixes an extraction issue when using OpenSUSE.
* Fix the arithmetic when fitting an image in 16:9Joaquim Rocha2017-11-101-1/+3
| | | | | | | | | | | | When saving a 16:9 pixbuf and the image parameter is not 16:9 we create a transparent pixbuf with this ratio and fit the image in it. However, this calculation was not correctly done due to an integer division so the result is that the width/height of the pixbuf's area to be copied was bigger than what the dimensions of the pixbuf; so no image was copied and we'd be left with a trasnparent pixbuf. This patch fixes this problem by using multiplications instead of a division in the mentioned code (as they avoid imprecision problems).