Commit Graph

1289 Commits (c432c417c241abc2f6ec45f3e504a37ec913f36a)
 

Author SHA1 Message Date
Alexander Larsson c432c417c2 tests: Add test for update 2016-05-17 10:32:29 +02:00
Alexander Larsson 3b291090c7 Merge pull request #160 from matthiasclasen/docs
Some library doc updates
2016-05-17 10:17:01 +02:00
Matthias Clasen fab3e4b991 Document new FlatpakInstallation api 2016-05-16 21:25:48 -04:00
Matthias Clasen d30ef7c602 Document FlatpakBundleRef apis 2016-05-16 19:50:30 -04:00
Matthias Clasen 0cfd001d9b Add some new api to the docs 2016-05-16 19:49:48 -04:00
Matthias Clasen e7d53ca7cb Add new FlatpakRemote apis to the docs 2016-05-16 19:37:08 -04:00
Matthias Clasen d784322f4e Fix a doc comment typo
Tis was causing the docs for flatpak_remote_get_disabled not
to be picked up.
2016-05-16 19:36:30 -04:00
Tristan Van Berkom b13fc460df flatpak-run.c: Handle arm and aarch64 arches
Allows 32bit applications to run in the sandbox on a 64bit aarch64 host.

https://bugs.freedesktop.org/show_bug.cgi?id=95421
2016-05-16 16:28:55 +02:00
Alexander Larsson 4316c9e104 lib: Add API to add/modify/remove remotes 2016-05-16 16:26:17 +02:00
Alexander Larsson b24aff6580 Remove unused variables 2016-05-16 16:25:09 +02:00
Alexander Larsson d1d73bd2b2 run: Remove old seccomp arch code
There was a merge error when we switched to bubblewrap, this
code was replaced with the code that only adds the target
arch, but we forgot to remove this old code.
2016-05-16 10:45:27 +02:00
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