Commit Graph

1428 Commits

Author SHA1 Message Date
Alexander Larsson
7cffe7c1b1 Actually export flatpak_installation_drop_caches 2016-05-16 10:22:45 +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
4a8a225447 remote-delete: Actually look at --force flag 2016-05-13 16:23:13 +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
096eb67c25 lib: Add flatpak_installation_drop_caches 2016-05-13 13:55:00 +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
29390fff39 Change portal error names to not contain Flatpak 2016-05-12 22:03:09 +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
e5649ead07 Fix debug spew with -v 2016-05-12 21:16:18 +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
9d6bc99649 builder: Untar with --no-same-owner
Without this if you run as root (which is generally a poor idea) it will
extract the sources with the user/group specified on the archive, which
is never what you want when building code.
2016-05-12 19:35:32 +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
Richard Hughes
5ff8a00078 Show the error when we fail to build AppStream metadata 2016-05-12 11:07:30 +02:00
Richard Hughes
c35395185b Actually update the branch when using --update-appstream 2016-05-12 11:07:30 +02:00
Alexander Larsson
96da8b7524 system-helper: Exit on idle, name lost or if binary is replaced 2016-05-12 11:06:41 +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
47bb7e2b2e Don't fail if there is no user-dirs.dirs
Based on patch from tristan

https://bugs.freedesktop.org/show_bug.cgi?id=95339
2016-05-12 08:45:40 +02:00
Alexander Larsson
12ac77138e add-remote: Support metalink=.. urls 2016-05-11 16:31:33 +02:00
Alexander Larsson
984e850fd6 remote-add: Use flatpak_dir_modify_remove 2016-05-11 16:27:43 +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
e6f6959afb run: Last fd issue??? 2016-05-11 15:41:49 +02:00
Alexander Larsson
fcf137f25d Remove references to --gpg-key= as it never worked 2016-05-11 15:39:11 +02:00
Alexander Larsson
edcf485dde run: More background fd issues fixed
This also simplifies the child_setup func by clearing CLOEXEC
on the needed fds.
2016-05-11 15:33:49 +02:00
Alexander Larsson
7d7e5c3bf9 run: Also keep the --args fd alive 2016-05-11 15:23:29 +02:00
Alexander Larsson
3f71025497 run: Fix running in the background
We need to keep all the fd:s needed for bubblewrap alive, so
neuter g_spawn_async:s close of fds and do our own.

Also, we need this so these fds can be closed in the launching app.
2016-05-11 15:14:11 +02:00
Alexander Larsson
4f6a2d5cd7 deploy: Ensure deploy dir is world readable 2016-05-11 13:55:33 +02:00
Alexander Larsson
acc6f55425 lib: Don't crash if we get_ref() fails 2016-05-11 13:48:07 +02:00
Alexander Larsson
4da7dc4742 appstream: Generate root dir of appstream branch world-readable 2016-05-11 12:23:55 +02:00
Alexander Larsson
1877f0be8d system-helper: Add support for updating appstream branch 2016-05-11 10:35:24 +02:00
Alexander Larsson
f68b21754a tests: Fix make-test-bundles.sh
This had bitrotted
2016-05-10 11:18:32 +02:00
Alexander Larsson
9957cc3a14 tests: Name bundles .flatpak 2016-05-10 11:10:51 +02:00
Alexander Larsson
d62127a437 run: Always cover /tmp/.X11-unix with an empty tmpfs
This way --filesystem=/tmp doesn't grant full access to the X sockets.
2016-05-10 10:53:24 +02:00
Alexander Larsson
dd6fe288f9 Update to latest bubblewrap version
Among other things this has --tmpfs support
2016-05-10 10:39:18 +02:00
Alexander Larsson
68bd311ac1 permission-store: Fix include paths 2016-05-09 21:30:30 +02:00
Alexander Larsson
20788bc290 lib: Remove deprecated calls
Now that we broke ABI anyway
2016-05-09 21:27:44 +02:00
Alexander Larsson
aabcc54db4 document-portal: Yet another attempt to fix the build 2016-05-09 21:21:07 +02:00
Alexander Larsson
cc4b60d667 permission-store: Hopefully fix the build
We got an error in gnome-continuous:
../permission-store/permission-store.c:27:35: fatal error: permission-store-dbus.h: No such file or directory
 #include "permission-store-dbus.h"

Not sure how this happens, but I hope this will fix it.
2016-05-09 19:15:44 +02:00
Alexander Larsson
28c1c65d8f Builder: Support disabled=true to not build a module
This is a simple way to "comment out" a module.
2016-05-09 17:24:42 +02:00
Alexander Larsson
633bd42cc6 Update .gitignore 2016-05-09 14:23:45 +02:00
Alexander Larsson
28b549156a Split out permission store from session helper
This is now available as org.freedesktop.impl.portal.PermissionStore
2016-05-09 14:07:22 +02:00
Alexander Larsson
605b3f4e09 tests: Add an en_US locale to the test runtime 2016-05-09 13:10:13 +02:00