Alexander Larsson
8ef84cc3d1
Move shared bundle install code to flatpak_dir_install_bundle
2016-06-03 14:30:25 +02:00
Alexander Larsson
21ab14b19a
Improve deployment of appstream data
...
This has several improvements:
* Writes to a temporary location and renames at the end, so
we never end up with partial checkouts.
* Don't fsync each file during checkout, instead syncfs() at
the end
* Pre-create the target deployment directory so that we get the right
permissions for it.
2016-06-03 14:30:25 +02:00
Alexander Larsson
13707f6b18
system-helper: Support directly pulling local remotes
...
For a local (file:// uri) remote, do an (untrusted) direct pull instead
of pulling into the users cached repo first. This way we do less copies,
as well as guaranteeing the source of the data. The later means its
mostly safe to also allow this for non-gpg signed remotes.
2016-06-02 15:30:08 +02:00
Sam Spilsbury
4fb1ae0b45
remote: Make the error message when summary_bytes == NULL more informative
...
It seems like one common user-error that could cause this is when
the remote URL was invalid.
2016-06-01 06:03:47 +00:00
Sam Spilsbury
c533e1aee6
summary: Make flatpak_cache_dir_summary static void
...
This function always returned NULL, and the return value was never
checked.
2016-06-01 05:59:54 +00:00
Sam Spilsbury
d9ec859878
summary: Don't cache summary if none was returned
...
ostree_repo_remote_fetch_summary can set out_summary to NULL but
still return TRUE according to the documentation, so don't assume
that *out_summary will always be set.
2016-06-01 05:58:21 +00:00
Alexander Larsson
733a28c9c4
Deply: Disable per-file fsync and do a single syncfs when deploy is done
...
This should perform a lot better
2016-05-31 14:41:04 +02:00
Alexander Larsson
bd7cf1af93
install: Better check for pre-existing installation
...
We need an actual active installation, not just the base directory.
This caused a failure if the user had tried to install and app but the
installation failed. After that installation failed due to it claiming
to be installed, while uninstall failed due it it *not* being
installed.
2016-05-30 16:35:50 +02:00
Alexander Larsson
8533f06dc0
Add more completions
2016-05-30 14:54:22 +02:00
Alexander Larsson
eeaa832095
Replace bash completion shell script with C-based version
...
This doesn't do everything yet, but its got the basics covered.
2016-05-27 16:30:13 +02:00
Josh Soref
56e61e6a4a
spelling: deployments
2016-05-27 06:39:17 +00:00
Alexander Larsson
1d8408e381
uninstall: When uninstalling the current branch, make other version current (if any)
2016-05-26 20:03:51 +02:00
Alexander Larsson
c48272c6db
uninstall: Default to whatever branch is installed
2016-05-26 19:08:46 +02:00
Alexander Larsson
bf294fb7c5
install: Be smarter about choosing the default branch name
...
We look for any matching ref on the remote and use that if there is a single match.
2016-05-26 19:06:51 +02:00
Alexander Larsson
b85e7f0de7
Don't use a local child repo of the system one if root
...
This is unnecessary, and risks creating files as root in the users
home directory if run under sudo.
2016-05-24 09:55:50 +02:00
Alexander Larsson
910328e535
Support no-deploy and no-pull via system helper
2016-05-20 13:30:50 +02:00
Alexander Larsson
b697a78dd3
system-helper: Support running unprivileged on session bus
...
This is only useful for testing.
2016-05-17 13:06:59 +02:00
Alexander Larsson
18992c2fa0
Look at FLATPAK_SYSTEM_DIR env var for default system dir
...
This is useful for testing
2016-05-17 11:55:41 +02:00
Alexander Larsson
251dcdb680
system-helper: Never use a system helper recursively
2016-05-17 11:54:44 +02:00
Alexander Larsson
90c909a932
Fix clang warnings
2016-05-13 16:26:47 +02:00
Alexander Larsson
1504f7bd7f
system-helper: Support add/modify/delete of remotes
2016-05-13 16:23:43 +02:00
Alexander Larsson
2875cdead5
remote-delete: Move to FlatpakDir and add checks for installed refs
...
You can't remove a remote unless you --force or there are no installs
from it.
2016-05-13 14:17:46 +02:00
Alexander Larsson
753cdc97fd
Fix typo: flatpak_dir_modify_remove -> flatpak_dir_modify_remote
2016-05-13 13:59:48 +02:00
Alexander Larsson
392f80a4aa
FlatpakDir: Add in-memory summary cache
...
Remote summary files are cached for 5 minutes.
2016-05-13 13:15:45 +02:00
Alexander Larsson
fa6e6c51ef
Duplicate ostree_repo_remote_list_refs in FlatpakDir
...
This way we can later add a local summary cache to it.
2016-05-13 11:32:40 +02:00
Alexander Larsson
0098164cd6
Register dbus errors for FLATPAK_ERROR
...
This allows us to transparently pass them from the system helper.
2016-05-12 22:03:42 +02:00
Alexander Larsson
5407b8efc6
system-helper: Support uninstall
2016-05-12 21:23:36 +02:00
Alexander Larsson
3964504438
Fix triggers with installation dir on a symlink
2016-05-12 21:16:40 +02:00
Alexander Larsson
fe0a1be5f8
common: Add flags for flatpak_dir_uninstall
...
This is better than a list of booleans.
2016-05-12 19:52:48 +02:00
Alexander Larsson
c5e178f339
Use flatpak_dir_uninstall for app and lib
2016-05-12 17:18:14 +02:00
Alexander Larsson
712fc9fc08
Use the installed/not-installed errors more consequently
2016-05-12 17:17:27 +02:00
Alexander Larsson
2ef6d9d5d9
common: Remove FlatpakDirError in favour of FlatpakError from the lib
2016-05-12 16:43:16 +02:00
Alexander Larsson
e23bc2b7a6
Move flatpack_error quark to common so that the common code can use it
2016-05-12 16:33:48 +02:00
Alexander Larsson
14f58fc4b9
system-helper: Fix timeout setting
2016-05-12 09:14:30 +02:00
Alexander Larsson
9c01fb93aa
system-helper: Set infinite timeout when doing system-helper calls
2016-05-12 08:59:25 +02:00
Alexander Larsson
9e4bb25b2c
modify-remote: Move the actual config rewriting to FlatpakDir
...
This is in preparation for doing this in the system helper.
2016-05-11 15:43:40 +02:00
Alexander Larsson
4f6a2d5cd7
deploy: Ensure deploy dir is world readable
2016-05-11 13:55:33 +02:00
Alexander Larsson
1877f0be8d
system-helper: Add support for updating appstream branch
2016-05-11 10:35:24 +02:00
Alexander Larsson
4f9ea6bb57
Remove unused variables
...
This fixes warnings from clang
2016-05-09 12:49:54 +02:00
Alexander Larsson
5e9b247d26
Migrate ~/.local/share/xdg-app to ~/.local/share/flatpak
2016-05-09 12:21:28 +02:00
Alexander Larsson
8abbc0186e
Rename everything but the on-disk location to flatpak
2016-05-09 11:11:55 +02:00
Alexander Larsson
c24528d369
Rename source files to flatpak
2016-05-09 09:00:20 +02:00