Alexander Larsson
f37b3261d6
Add support for disabled remotes
...
If this is set we don't list them by default, and we don't
automatically update apps from them.
2016-04-27 13:39:34 +02:00
Alexander Larsson
e471231414
common: Remove unused xdg_app_dir_get_installed_size
2016-04-27 13:10:32 +02:00
Alexander Larsson
64669a9a96
common: Write and use the new deploydata file
...
Instead of separate "origin", "subpaths" and eventually "installed-size"
files we store a single (extensible) gvariant with all this info, which
means we need to seek less to get it.
Also, we move this file into the deploy dir as some of the data
differs for each deploy, and that way we can rely on the the active
symlink to make the update atomic.
2016-04-27 12:41:41 +02:00
Alexander Larsson
74c0689843
commont: Add deploy data GVariant
...
This is a single file for the per-deploy data in the deploy dir.
We want this so we can avoid stat:ing a lot of separate files to get
data like origin, subpaths and eventually cached installed size.
2016-04-27 11:49:39 +02:00
Alexander Larsson
a304b786f4
installation_fetch_remote_size_sync: Always fail with deprecation error
...
This is not supported anymore since it was replaced with the summary cache.
Remove the code so nothing accidentally uses it.
2016-04-27 09:29:48 +02:00
Alexander Larsson
07e5b4a219
Move system-helper use into xdg_app_dir_install/update()
...
This way we don't need to keep state in XdgAppDir for the child
repo, which is not threadsafe.
2016-04-26 16:48:18 +02:00
Alexander Larsson
2a46f3277c
Add xdg_app_dir_install/update helpers
...
These don't do much atm, but will let us clean up the child_repo handling
2016-04-26 16:24:09 +02:00
Alexander Larsson
b2b05e1175
update/install: Handle deploy using the system service
2016-04-25 18:59:17 +02:00
Alexander Larsson
6af6d629a2
Initial work on pulling to a child repo
2016-04-25 18:59:17 +02:00
Alexander Larsson
fee5d4d169
XdgAppDir: Add xdg_app_dir_pull_untrusted_local helper
2016-04-25 18:59:17 +02:00
Alexander Larsson
d314df07c1
Add xdg_app_dir_deploy_install helper
2016-04-21 20:59:26 +02:00
Alexander Larsson
91eda8919e
common: Move duplicated code into xdg_app_dir_deploy_update
2016-04-21 20:19:01 +02:00
Alexander Larsson
1c1bc4acca
common: Move xdg_app_dir_pull_from_bundle to xdg_app_pull_from_bundle
...
The only difference is it takes an OstreeRepo, not a XdgAppDir, so we
can use it at a lower level too.
2016-04-19 13:31:55 +02:00
Alexander Larsson
1dd993cad6
lib: Add new cache based getters for metadata and size
2016-04-14 19:29:40 +02:00
Alexander Larsson
3cc45ccf13
Add support for subpath limited installs
...
This allows you to install e.g. org.freedesktop.Platform.Locale
but only the /sv subdir, and replaces using separate branches for
each locale.
2016-04-07 20:36:53 +02:00
Alexander Larsson
eadb10cba7
common: Move part of bundle install to helper functions
2016-02-25 11:31:22 +01:00
Alexander Larsson
abdbb17a72
Remove all appstream checkouts and mirrored refs when deleting remote
2016-02-18 12:54:40 +01:00
Alexander Larsson
2bede34952
lib: Add getter for installed size on InstalledRef
2016-01-19 15:05:06 +01:00
Alexander Larsson
de7e19e40f
The plural of appdata is appstream
2016-01-18 21:06:42 +01:00
Alexander Larsson
51e9fa2b8d
build-update-repo: Add --appdata update option
2016-01-15 15:59:22 +01:00
Alexander Larsson
839c5ca885
XdgAppDir: Add helper to fetch the size info for a commit
2016-01-14 16:45:28 +01:00
Alexander Larsson
f7a1fdaa99
xdg-app: Deprecate install/update/uninstall-app/runtime
...
We just have install/updata/uninstall and have --app and --runtime
options if you really want to specify the type. Otherwise we just
automatically chose the right thing.
2016-01-13 15:34:08 +01:00
Alexander Larsson
cd490d12a7
XdgAppDir: Touch .changes file each time something changes
2015-12-21 11:12:25 +01:00
Alexander Larsson
ea543c8f93
lib/app: Add support for repo priorities
...
New repos default to prio 1, bundle repos default to prio 0.
Listing repos returns in sorted order, with add order as secondary
sort key.
2015-12-21 10:28:15 +01:00
Alexander Larsson
e87e2b7736
common: Add xdg_app_dir_read_latest helper
2015-12-18 11:54:12 +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
be4f0d86d8
common: Add and use xdg_app_dir_deploy_update()
2015-12-15 15:21:00 +01:00
Alexander Larsson
6cdbf400b2
lib: Add xdg_app_dir_undeploy_all and xdg_app_dir_remove_ref helpers
2015-12-15 14:36:17 +01:00
Alexander Larsson
9285d055ab
lib: Add xdg_app_installation_install
2015-12-15 12:26:59 +01:00
Alexander Larsson
f8e9b74d1f
XdgAppDir: Add set_origin helper function
2015-12-15 09:25:02 +01:00
Alexander Larsson
a28ced36c7
lib: Add xdg_app_installation_load_app_overrides()
2015-12-08 11:48:22 +01:00
Alexander Larsson
a62f64d265
lib: Add xdg_app_remote_ref_fetch_metadata_sync helper
...
This does direct soup access on the repo. Not ideal, but good for now.
2015-12-08 11:01:13 +01:00
Alexander Larsson
03ae229751
Move most of builtins-run to xdg_app_run_app helper
...
This is in preparation for letting the library start apps.
2015-12-07 12:27:53 +01:00
Alexander Larsson
b761aa05a7
common: Move typedef to separate header to avoid circular deps
2015-12-07 12:26:44 +01:00
Alexander Larsson
ad7b379398
Add no-enumerate flag to remote and set if for bundle origin remotes
2015-12-04 11:40:51 +01:00
Alexander Larsson
704300e1b4
Add xdg_app_dir_fetch_remote_title and remote old custom summary fetcher
2015-12-04 11:09:00 +01:00
Alexander Larsson
5bc44ea125
XdgAppDir: Add some helpers for handling remotes
2015-12-04 10:48:05 +01:00
Alexander Larsson
106a5b06ec
Rename lib/ to common/ in preparation for public xdg-app library
2015-11-26 22:05:38 +01:00