Commit Graph

736 Commits

Author SHA1 Message Date
Alexander Larsson
22c1229ea8 install-bundle: Make the repo title shorter 2015-12-21 10:19:22 +01:00
Alexander Larsson
8a6cee3e46 list-remotes: Default to list only system remotes
This matches what install-* would use and also makes the bash completion
more sane.
2015-12-21 10:02:48 +01:00
Alexander Larsson
cad13521fe apps: Make it more obvious that system repo is default
In the install-* and other commands where the dir is initialized from
the args, document that the system repo is the default in the usage
help.
2015-12-21 10:01:00 +01:00
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
e87e2b7736 common: Add xdg_app_dir_read_latest helper 2015-12-18 11:54:12 +01:00
Alexander Larsson
b9b9ad9ccc app: Support --no-pull and --no-deploy in the install and update commands
This adds general support for the local app branch to be further ahead
of the active deployement, including showing this in list-app and
list-runtime commands.
2015-12-18 11:41:07 +01:00
Alexander Larsson
dd210ed6cc app: Use space, not tab to delimit columns
Tabs were using way to much space
2015-12-18 11:18:24 +01:00
Alexander Larsson
1f059c9f5f app: Limit commit id output to 12 chars 2015-12-18 11:17:19 +01:00
Alexander Larsson
c3522e7a65 list-*: Show active commit ids 2015-12-18 11:11:14 +01:00
Alexander Larsson
80c6a8b66c ls-remote: Support showing remote commit ids 2015-12-18 11:04:41 +01:00
Alexander Larsson
f9b9f70fad common: Add xdg_app_strcmp0_ptr and use it in all g_ptr_array_sort calls 2015-12-18 10:41:34 +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
e6509ff11c lib: Add xdg_app_ref_format_ref 2015-12-17 21:37:14 +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
e7903a8033 lib: Move fetch_metadata_sync from RemoteRef to Remote
We want to make the Ref objects pure data storage
2015-12-17 20:19:27 +01:00
Alexander Larsson
7da16de205 lib: get_current => get_is_current 2015-12-17 20:10:10 +01:00
Alexander Larsson
67de92042b apps: Use "branch", not "version" when talking about app branches 2015-12-17 20:07:14 +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
4ea61d3830 lib: Return GPtrArray from xdg_app_remote_list_refs_sync 2015-12-17 19:57:01 +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
dd7693b99e libglnx: Update to get glib 2.44 build fix 2015-12-17 15:49:11 +01:00
Alexander Larsson
88ab54d8b6 Update NEWS for 0.4.6 0.4.6 2015-12-16 15:36:53 +01:00
Alexander Larsson
570ba8b55f Add --enable-libxdgapp configure flag and disable lib by default 2015-12-16 15:27:42 +01:00
Alexander Larsson
619adeb74c builder: Add cleanup-command property
This allows you to do some custom cleanup operations
2015-12-16 14:50:05 +01:00
Alexander Larsson
2175ffa77d Add missing EXTRA_DIST to pass distcheck 2015-12-16 13:22:04 +01:00
Alexander Larsson
3e5019bc64 Bump version to 0.4.6 2015-12-16 13:18:28 +01:00
Alexander Larsson
9c77b86d3d lib: Fix return value type warnings 2015-12-16 13:03:55 +01:00
Alexander Larsson
ef3582325d builder: Store the cache in BARE_USER mode
This has two advantages:
1) If building as non-root, then we can't modify xattrs, such as
   selinux ones, yet selinux will write then, making a bare repo
   not match the checksums (it has unexpected xattrs that selinux made)
2) We check out as MODE_NONE, not MODE_USER, which in combination with
   BARE_USER forces the files to be copied out of the cache, rather
   than using hardlinks into the cache which could mutate the cache.
2015-12-16 11:56:56 +01:00
Alexander Larsson
46558798a2 builder: Don't fsync on cache checkouts 2015-12-16 11:18:05 +01:00
Alexander Larsson
739b5ab6db builder: Support writable-sdk option 2015-12-15 19:36:10 +01:00
Alexander Larsson
1baa77f107 build-init: Allow writable sdk 2015-12-15 19:36:06 +01:00
Alexander Larsson
a0885d4576 builder: Allow specifying custom prefix 2015-12-15 19:36:06 +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
856c8210a9 lib: Add custom GError codes 2015-12-15 15:27:37 +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
b820249178 common: Add xdg_app_compose_ref helper 2015-12-15 14:55:29 +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
3dc56a65de helper: Properly unescape strings 2015-12-15 14:35:18 +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
4531c91519 app: Clean up leftover removes after updates too 2015-12-15 12:43:22 +01:00
Alexander Larsson
9285d055ab lib: Add xdg_app_installation_install 2015-12-15 12:26:59 +01:00
Alexander Larsson
1a2b5adffe Bump libglnx to latest version 2015-12-15 09:27:21 +01:00