Alexander Larsson
b3b5da71c9
lib: Use deploydata file directly
...
This means we seek a lot less. Also, we get the cached installed
size rather than recalculating it all the time.
2016-04-27 13:09:34 +02:00
Alexander Larsson
4b0621cfb0
info: Use deploy_data
2016-04-27 13:01:54 +02:00
Alexander Larsson
5789c5c99d
list: Use deploy data to avoid lots of seeks
2016-04-27 12:58:55 +02:00
Alexander Larsson
ffb6670332
deploy: Deploy to temporary directory and rename at the end
2016-04-27 12:58:31 +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
b8b3d319d4
common: Add xdg_app_variant_save
2016-04-27 12:33:47 +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
e4d3a7da5a
list: Show installed size and subpaths
2016-04-27 10:23:04 +02:00
Alexander Larsson
be71ceb31f
xdg_app_dir_get_installed_size: Implement without using ostree sizes
...
This is slightly slower, but actually works since we stopped
collecting sizes in the commits. Further work will make this more performant.
2016-04-27 10:02:49 +02:00
Alexander Larsson
02c3cae33f
xdg_app_repo_collect_sizes: Don't collect unrequested sizes.
2016-04-27 10:02:00 +02:00
Alexander Larsson
9624dd67da
common: Export xdg_app_repo_collect_sizes
2016-04-27 09:41:14 +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
965530c143
helper: Don't try to mount /.oldroot into the sandbox
...
This will conflict with the internal .oldroot
2016-04-27 08:49:23 +02:00
Alexander Larsson
eeece1a789
Merge branch 'privileged-helper'
2016-04-26 17:01:18 +02:00
Alexander Larsson
839e17abf0
session-helper: Forgot to remove some of the dead gresource code
2016-04-26 16:58:20 +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
64a28a9e7c
XdgAppDir helper: Update system_helper threadsafely
2016-04-26 15:45:44 +02:00
Alexander Larsson
990127fe11
system-helper: Use g_strcmp0 to simplify some code
...
Pointed out by cosimo
2016-04-26 12:09:28 +02:00
Alexander Larsson
913bae4726
system-helper: Actually return on unsupported flags
...
Otherwise we continue even though there was an error.
Pointed out by cosimo
2016-04-26 12:08:37 +02:00
Alexander Larsson
3ec67c57e6
xgd_app_dir_deploy_update: Use the shared system helper
2016-04-26 12:06:03 +02:00
Alexander Larsson
4734eb95df
system-helper: Minor cleanup
2016-04-26 11:58:29 +02:00
Alexander Larsson
4f4b8c536b
No need to put introspection xml in resources
...
This is already built in to the gdbus codegen code.
2016-04-26 11:54:59 +02:00
Alexander Larsson
49d84aed94
We don't actually need the introspection data in the resource
...
All the required stuff are in the generated code anyway.
2016-04-26 11:50:16 +02:00
Alexander Larsson
54af892f3a
Use glnx_dirfd_iterator_next_dent_ensure_dtype where possible
2016-04-26 10:49:49 +02:00
Alexander Larsson
406ee7da18
docs: Fix typo
2016-04-26 10:34:53 +02:00
Alexander Larsson
d1788ae318
xdg_app_dir_init_system_helper: Properly pass the error in
2016-04-26 08:50:42 +02:00
Alexander Larsson
96d236a531
xdg_app_dir_pull_untrusted_local: Fix issues pointed out by cosimoc
...
Also, remove some spew
2016-04-26 08:50:07 +02:00
Alexander Larsson
a7f5b57c75
Don't try to use system helper if its not installed
2016-04-25 19:48:17 +02:00
Alexander Larsson
2d74810cbc
common: Add (and use) xdg_app_summary_lookup_ref helper
2016-04-25 18:59:17 +02:00
Alexander Larsson
dc60f02716
system-helper: Add PolicyKit authentication for system helper
2016-04-25 18:59:17 +02:00
Alexander Larsson
f340105b4c
Add gettext support to build
2016-04-25 18:59:17 +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
8ac40150a6
Initial (empty) version of system helper
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
ac517099eb
utils: Add xdg_app_allocate_tmpdir
2016-04-25 18:59:17 +02:00
Alexander Larsson
4261057e2a
common: Don't use singletons for the system/user XdgAppDirs
...
Without this we never finalize them and can't e.g. remote temporary
files.
2016-04-22 08:55:41 +02:00
Alexander Larsson
7d509ab93a
Fix confusion about GError types
...
This was pretty mixed up. Also XdgAppError was not exported.
2016-04-21 20:59:30 +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
21dd53d1ff
common: Set ~/.local/share/xdg-app/system-cache as cache dir for system repo
...
This means we can use a summary cache for system wide stuff which causes
loads to be faster.
2016-04-21 18:54:15 +02:00
Alexander Larsson
351c2d5bd2
Read system remotes from /etc/xdg-app/remotes.d/*.conf
2016-04-21 18:47:11 +02:00
Alexander Larsson
3383eefc82
Drop checks for old ostree versions
2016-04-21 18:36:48 +02:00
Alexander Larsson
29458bc154
Remove support for older ostree without bundle support
...
This is not needed when we depend on 2016.5
2016-04-21 18:34:28 +02:00
Alexander Larsson
16a02dd6c1
Bump ostree requirement to 2016.5
...
This release has a bunch of important fixes and new features that we
want to start relying on.
2016-04-21 18:31:34 +02:00
Alexander Larsson
0b1bc5bc4e
build-bundle: Move the gpg_data local to the right function
...
This was unused in the main function, something which was missed
when the build_bundle() helper was split out.
2016-04-21 09:50:01 +02:00
Alexander Larsson
9171c94662
builder: Fix unused return value warnings
...
This just adds a (void) cast to avoid the warnings.
2016-04-21 09:49:24 +02:00
Alexander Larsson
af03d2f5b4
Remove unused local variables reported by clang
2016-04-21 09:48:56 +02:00
Alexander Larsson
1838b1e9da
common: Fix warning due to get_user_dir_from_string return type change
2016-04-21 09:39:55 +02:00