summaryrefslogtreecommitdiff
path: root/libappstream-glib/as-store.c
Commit message (Collapse)AuthorAgeFilesLines
...
* trivial: Use the unique ID in the dedupe logsRichard Hughes2016-08-031-11/+25
|
* Use an array of application objects in the ID hashRichard Hughes2016-08-031-25/+37
| | | | | This speeds up matching the addons by over 150ms per store load which recently regressed with the addition of AS_STORE_ADD_FLAG_USE_UNIQUE_ID.
* as_store_from_file_internal: set up path data for the file itselfSimon McVittie2016-08-021-8/+4
| | | | | | | | | | | Otherwise, when it changes we'll just emit As-WARNING **: no path data for /.../xmls and not actually update its contents. Closes: #124 Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
* as_store_from_file_internal: don't redundantly monitor filesSimon McVittie2016-08-021-1/+12
| | | | | | | | | We only need to monitor the file if we are not already monitoring (or intending to monitor) its parent directory, as we are in as_store_watch_source_added() and as_store_load_app_info_file(), but not as_store_from_file(). Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
* Allow multiple components with the same AppStream ID in the AsStoreRichard Hughes2016-08-011-23/+48
| | | | | | By using the 'unique-id' to de-duplicate the objects in the store we can support cases where there are multiple flatpak remotes providing the same app, or where a remote provides two different branches of the same application.
* Include the version in the equality checkRichard Hughes2016-08-011-1/+5
|
* Restrict addons to the same scope and bundle kindRichard Hughes2016-08-011-20/+32
|
* Add as_store_get_app_by_unique_id()Richard Hughes2016-07-311-0/+98
|
* trivial: Fix the flatpak scope when using the symlink nameRichard Hughes2016-07-311-0/+5
|
* trivial: Fix the origin name when using the symlink nameRichard Hughes2016-07-311-3/+7
|
* Include the scope in the equality checkRichard Hughes2016-07-311-46/+47
|
* Remove specific support for flatpakRichard Hughes2016-07-291-230/+2
| | | | It's expected something will create the required symlinks at user-runtime.
* Add two new GCC warnings and fix up signed/unsigned issuesRichard Hughes2016-07-251-4/+4
|
* trivial: Add two more renamed desktop IDsRichard Hughes2016-07-251-0/+2
|
* Do not save the 'X-' prefixed keys to the AppStream metadataRichard Hughes2016-07-151-0/+3
| | | | Continue to load them at runtime from installed desktop files.
* store: Don't emit a warning when flatpak user directory doesn't existKalev Lember2016-07-061-0/+5
|
* trivial: Get rid of useless internal-only gtk-doc markupRichard Hughes2016-06-281-120/+0
|
* Load metainfo files if presentRichard Hughes2016-06-131-0/+9
| | | | | | /usr/share/appdata is the old location, but will be supported for a long time. Replaces https://github.com/hughsie/appstream-glib/pull/112
* trivial: Fix several issues to ensure changed signal are sentRichard Hughes2016-06-111-1/+6
|
* Correctly detect new AppStream applications in new directoriesRichard Hughes2016-06-081-7/+32
| | | | Only add directories to the monitor hash, not all filenames.
* Allow setting the id prefix and origin using a symlink file nameRichard Hughes2016-06-081-11/+72
| | | | | | | | | | | | | 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.
* Save the ID prefix in more placesRichard Hughes2016-05-181-44/+77
| | | | | Also, fix a potential crash when the path-data wasn't set before the callback was fired.
* Correctly set the architecture on newly discovered applicationsRichard Hughes2016-05-181-11/+30
|
* Set the architecture of discovered Flatpak appsRichard Hughes2016-05-181-6/+20
|
* Add all applications for all architectures when loading FlatpakRichard Hughes2016-05-181-59/+34
|
* Always add /var/lib/flatpak/appstream as a possible Flatpak pathRichard Hughes2016-05-181-0/+7
| | | | | Deal with the case where the user installs flatpak system-wide and appstream-glib and gnome-software are built in jhbuild with a different prefix.
* Revert "trivial: Add some support for flatpak self tests"Richard Hughes2016-05-141-15/+0
| | | | This reverts commit a852822fe2037c6b9c43984b5bd38c952f3a6abe.
* Merge pull request #107 from DimStar77/show-appnameRichard Hughes2016-05-131-1/+2
|\ | | | | Show the app name when complaining about missing description in the m…
| * Show the app name when complaining about missing description in the metadataDominique Leuenberger2016-05-131-1/+2
| |
* | Addons can have duplcate namesDominique Leuenberger2016-05-131-16/+18
|/ | | | | It's not uncommon for addons to be called after the functionality they provide to the application they extend (e.g. "Spell checker").
* trivial: Add some support for flatpak self testsRichard Hughes2016-05-121-0/+15
|
* Rename the xdg-app support to the new name: FlatpakRichard Hughes2016-05-111-48/+55
|
* trivial: Add some more debugging to debug an issueRichard Hughes2016-05-111-0/+2
|
* trivial: Add three more apps to the ID fallback tableRichard Hughes2016-04-271-0/+3
|
* Ignore files with invalid suffixes when building installed storesRichard Hughes2016-04-251-1/+17
| | | | Fixes https://github.com/hughsie/appstream-glib/issues/99
* trivial: Fix critical warning when validing broken AppStream filesRichard Hughes2016-04-131-16/+21
|
* Search /usr/share/metainfo for local filesRichard Hughes2016-04-121-0/+7
| | | | This is for non-application metainfo files.
* Fall back to searching in as_store_get_app_by_pkgname()Richard Hughes2016-04-071-1/+37
| | | | | | | | | | If the user does: - as_store_load() - as_store_get_app_by_id() - as_app_add_pkgname() - as_store_get_app_by_pkgname() Then we don't return the app. This is probably not what the user expects.
* Do not hardcode x86_64 when searching for xdg-app metadataRichard Hughes2016-04-011-1/+52
|
* trivial: Only remove apps with a veto when specifiedRichard Hughes2016-03-311-1/+2
|
* Add as_store_remove_apps_with_veto()Richard Hughes2016-03-311-1/+12
| | | | This might be useful to libappstream-builder and gnome-software.
* Enforce the requirement of AppData for 'Categories=DesktopSettings'Richard Hughes2016-03-311-0/+70
| | | | | | This is enforced for both generation of AppStream metadata, and the display of installed apps. If your system settings program disappears, just write an AppData file!
* Also filter YAML apps before adding to the storeRichard Hughes2016-03-311-0/+7
| | | | This stops fwupd showing a *huge* number of devices.
* Merge duplicate AppStream component entriesRichard Hughes2016-03-271-10/+1
|
* Add as_store_get_apps_by_id()Richard Hughes2016-03-231-0/+34
|
* Add as_store_get_app_by_id_ignore_prefix()Richard Hughes2016-03-231-0/+30
| | | | | This allows applications to be fetched from the store when we don't care what the prefix is.
* Implement DEP-11 MediaBaseUrl supportRobert Ancell2016-03-041-1/+5
|
* Fix ordering of parameters to as_store_search_app_infoRobert Ancell2016-03-011-2/+2
| | | | | This was causing system appstream loading to fail and was introduced in commit 8abd003c.
* trivial: Fix critical warning for xdg-app bundlesRichard Hughes2016-02-261-1/+2
|
* Support loading XML files using as_store_from_bytes()Richard Hughes2016-02-261-4/+28
|