Alexander Larsson
2f74965935
lib: Add cancellable to Installation constructors
2015-12-18 14:20:28 +01:00
Alexander Larsson
fdc9b62988
lib: Always initialize the repo on Installation creation
...
This means we can fail if the repo doesn't exist yet and we have
no write rights.
2015-12-18 12:27:26 +01:00
Alexander Larsson
feed03c284
lib: Expose latest_commit on installed app and let you use it
...
When updating you can pass flags to not deploy and to not pull.
2015-12-18 12:14:57 +01:00
Alexander Larsson
41b3db5e01
lib: Add xdg_app_installation_list_installed_refs_for_update
2015-12-17 21:37:30 +01:00
Alexander Larsson
3087186a36
lib: Make list_remotes return a GPtrArray
2015-12-17 21:07:52 +01:00
Alexander Larsson
6a507970c5
lib: Move all sync operations from XdgAppRemote to XdgAppInstallation
...
Its much easier to handle locking etc when all the i/o operations
are on XdgAppInstallation, and the other objects are pure data carriers.
2015-12-17 20:51:59 +01:00
Alexander Larsson
874fce2b77
lib: Move app launching to XdgAppInstallation
2015-12-17 20:34:25 +01:00
Alexander Larsson
dd7f18aaf2
lib: Always use "branch" not "version" in API
...
"version" is really confusin
2015-12-17 20:00:48 +01:00
Alexander Larsson
b9c582bc75
lib: Change how listing installed refs work
...
Now we return a GPtrArray, and the main call returns both apps
and runtimes, and a new _by_kind version lets you get only a specific one.
2015-12-17 19:50:40 +01:00
Alexander Larsson
9c77b86d3d
lib: Fix return value type warnings
2015-12-16 13:03:55 +01:00
Alexander Larsson
8b5208a995
Add lock file for each xdg-app dir.
...
This protects the stuff outside the repo (such as deploys, exports,
active checkout, current branch, etc). However, we rely on ostree
concurrency handling for handling concurrent pulls and prunes.
For reading (e.g. list-apps, etc), we don't do any locking, as these
all writes are essentially updated atomically (last change is atomic) and
any once you return such information it could be out of date anyway.
2015-12-15 16:20:28 +01:00
Alexander Larsson
8f700b9aca
lib: Use the new installed/not-installed custom GErrors
2015-12-15 15:33:23 +01:00
Alexander Larsson
be4f0d86d8
common: Add and use xdg_app_dir_deploy_update()
2015-12-15 15:21:00 +01:00
Alexander Larsson
423a5af15b
lib: Add xdg_app_installation_uninstall
2015-12-15 15:07:41 +01:00
Alexander Larsson
604f71937a
Use xdg_app_compose_ref helper
2015-12-15 14:58:12 +01:00
Alexander Larsson
43a09b3646
Fix unused variable warnings
2015-12-15 14:34:52 +01:00
Alexander Larsson
4342959f6d
lib: Add xdg_app_installation_update
2015-12-15 12:43:56 +01:00
Alexander Larsson
9285d055ab
lib: Add xdg_app_installation_install
2015-12-15 12:26:59 +01:00
Alexander Larsson
ca06b3e66f
lib: Fix build with older glib
2015-12-14 22:01:21 +01:00
Alexander Larsson
a28ced36c7
lib: Add xdg_app_installation_load_app_overrides()
2015-12-08 11:48:22 +01:00
Alexander Larsson
5b1931dc8d
lib: Add xdg_app_installed_ref_launch()
2015-12-07 13:36:39 +01:00
Alexander Larsson
1ba476bcbe
Merge pull request #90 from ebassi/introspection
...
Introspection
2015-12-04 11:42:47 +01:00
Emmanuele Bassi
c09375c855
Annotate transfer rules for ambiguous return values
...
This silences all the warnings from the introspection scanner.
2015-12-04 10:17:39 +00:00
Alexander Larsson
2f6fc54897
lib: Use the new remote helpers
2015-12-04 10:49:16 +01:00
Alexander Larsson
132d1186d9
Initial version of libxdg-app
...
This is a highlevel library for working with xdg-app without using
the commandline interface. The primary usecase for this is for
creating a graphical frontend for app installation/update.
2015-12-03 22:41:16 +01:00