Commit Graph
1869 Commits
Author SHA1 Message Date
Alexander Larsson 1d1189aeab Fix crash if completing with NULL shell_cur
This happens if you do e.g.
  flatpak complete "flatpak install " 11

Reported by aki237
2016-09-14 14:31:33 +02:00
Alexander Larsson eff46a9d50 Tweak po/Makevars
This fixes up the copyright owner, and turns off DEPENDS_ON_POT and
DIST_DEPENDS_ON_UPDATE_PO, which better fits with the way we use git.
2016-09-14 12:18:06 +02:00
Alexander Larsson 00383b9285 Merge pull request #305 from matthiasclasen/name-validation
More validation error reporting improvements
2016-09-14 11:57:47 +02:00
Alexander Larsson 8628ec938e HostCommand: Return actual PID
This is needed by e.g gnome-builder that want to pass this pid to
a profiler service. Its not really less secure/sandboxed this way,
because the app can launch whatever he wants in the host, which could
anyway talk back and report the real pid.
2016-09-14 10:03:15 +02:00
Matthias Clasen 06c7aca9f9 Make flatpak_is_valid_branch set a GError
Return detailed information about the problem with the branch in
the GError. Update all callers.
2016-09-13 13:28:42 -04:00
Matthias Clasen fe91657a44 Update the docs
Update the doc comment for flatpak_is_valid_name to reflect
current reality.
2016-09-13 13:15:41 -04:00
Matthias Clasen 687cae783e Always set an error when failing name validation
This was an oversight in the previous patch to improve
name validation error messages.
2016-09-13 13:13:43 -04:00
Alexander Larsson 38a6b8d5e4 Post-release version bump 2016-09-13 15:13:20 +02:00
Alexander Larsson bd7ab85102 Add FLATPAK_CHECK_VERSION macro
From: https://github.com/flatpak/flatpak/issues/304
2016-09-13 13:30:04 +02:00
Alexander Larsson 6a8ffa725e Merge pull request #303 from baedert/missing-newlines
build-export: Add missing \n to g_print calls
2016-09-13 09:44:33 +02:00
Timm Bäder f4bf8eb955 build-export: Add missing \n to g_print calls 2016-09-13 09:39:36 +02:00
Alexander Larsson db6b4c9b52 Merge pull request #297 from chergert/master
session-helper: return after sending DBus error
2016-09-13 09:19:05 +02:00
Alexander Larsson 27ef339b4d Merge pull request #298 from piotrdrag/pl-update-160912
Updated Polish translation 160912
2016-09-13 09:11:01 +02:00
Alexander Larsson 68e84e3205 Merge pull request #301 from bochecha/submodules-again
Improve git submodules... again
2016-09-13 09:02:11 +02:00
Alexander Larsson 106c9cc343 Merge pull request #302 from matthiasclasen/name-validation
Make flatpak_is_valid_name set a GError
2016-09-13 08:46:59 +02:00
Matthias Clasen b2b281e485 Make flatpak_is_valid_name set a GError
Return detailed information about the problem with the name in
the GError. Update all callers.
2016-09-12 23:25:54 -04:00
Mathieu Bridon d165475e17 builder: Don't fail when submodule path isn't a gitlink
This is what git itself does, so we just should do the same.

https://github.com/git/git/blob/cda1bbd474805e653dda8a71d4ea3790e2a66cbb/builtin/submodule--helper.c#L247-L248
2016-09-13 00:24:42 +02:00
Mathieu Bridon 5430d4d40e builder: Properly check for gitlink trees
Instead of expecting the second word to be "commit", we should do like
git does and check for the file mode, which is 160000 for gitlink trees.

https://github.com/git/git/blob/cda1bbd474805e653dda8a71d4ea3790e2a66cbb/cache.h#L96
2016-09-13 00:24:42 +02:00
Piotr Drąg ec061cca90 Updated Polish translation 2016-09-12 18:05:27 +02:00
Piotr Drąg 4495595b89 Add more options to XGETTEXT_OPTIONS in po/Makevars
--add-comments makes translator comments appear in the .po files, and the
rest is future-proofing (in case we need msgctxt and msgid_plural later).
2016-09-12 17:52:39 +02:00
Alexander Larsson 95891501a0 Update po/ 0.6.10 2016-09-12 13:37:32 +02:00
Alexander Larsson da38fc544c Update version/news to 0.6.10 2016-09-12 13:27:47 +02:00
Alexander Larsson 216fc73449 Update pofiles 2016-09-12 13:08:06 +02:00
Alexander Larsson e3b346c661 lib: Add flatpak_installation_install_ref_file
This gives libflatpak API support for .flatpakref files
2016-09-12 12:13:52 +02:00
Alexander Larsson edac377e86 origin remotes: Store main ref
If you install an app via a bundle of a .flatpakref file then
the ref of the app is also saved with the remote metadata.
2016-09-12 11:58:22 +02:00
Alexander Larsson 968d9b1169 app-info: Fix saving of features to keyfile
This was accidentally using the devices bitmask instead
2016-09-12 11:11:50 +02:00
Alexander Larsson fba645a999 Remove unused local variables reported by clang 2016-09-12 11:11:35 +02:00
Christian Hergert bed5eb5863 session-helper: return after sending DBus error
Make sure we let the caller know we handled the message immediately after
sending our error reply.
2016-09-12 01:37:50 -07:00
Alexander Larsson 3fafba8b1e Don't use deprecated ostree_repo_checkout_tree_at function
We now use the new (almost identical) ostree_repo_checkout_at.
2016-09-12 09:03:33 +02:00
Alexander Larsson d287415150 Merge pull request #287 from smcv/tests
Various test fixes
2016-09-12 08:48:05 +02:00
Alexander Larsson 7bd8bd472e Merge pull request #288 from muelli/sign
build-sign: fix short help message
2016-09-12 08:43:17 +02:00
Alexander Larsson 9e3ee67f90 Merge pull request #290 from muelli/crash
flatpak-session-helper: Check for arg_argv being NULL
2016-09-12 08:41:19 +02:00
Alexander Larsson 4e3428b5a2 Merge pull request #292 from chergert/wip/chergert/bittwiddle
dbus-proxy: alignment bit-twiddling to remove multiple and divide
2016-09-12 08:39:45 +02:00
Alexander Larsson fcef4bd021 Merge pull request #294 from yurchor/master
Update Ukrainian translation
2016-09-12 08:36:48 +02:00
Alexander Larsson 618dfc8b32 Merge pull request #296 from prescott66/master
Added slovak translation
2016-09-12 08:31:13 +02:00
Dušan Kazik 57c2370b20 Create sk.po 2016-09-11 21:31:41 +02:00
Dušan Kazik 0a21f9f70b Update LINGUAS 2016-09-11 21:30:50 +02:00
Yuri Chornoivan 97865edb9c Update Ukrainian translation 2016-09-10 11:07:53 +03:00
Alexander Larsson 71500ae5ec Add support for .flatpakref files
These are similar to .flatpakrepo, but for a single app.

For example, if you have a file gedit.flatpakref with this:

[Flatpak Ref]
Title=GEdit
Name=org.gnome.gedit
Branch=stable
Url=http://sdk.gnome.org/repo-apps/
IsRuntime=False
GPGKey=mQENBFUUCGcBCAC/K9WeV4xCaKr3NKRqPXeY5mpaXAJyasLqCtrDx92WUgbu0voWrhohNAKpqizod2dvzc/XTxm3rHyIxmNfdhz1gaGhynU75Qw4aJVcly2eghTIl++gfDtOvrOZo/VuAq30f32dMIgHQdRwEpgCwz7WyjpqZYltPAEcCNL4MTChAfiHJeeiQ5ibystNBW8W6Ymf7sO4m4g5+/aOxI54oCOzD9TwBAe+yXcJJWtc2rAhMCjtyPJzxd0ZVXqIzCe1xRvJ6Rq7YCiMbiM2DQFWXKnmYQbj4TGNMnwNdAajCdrcBWEMSbzq7EzuThIJRd8Ky4BkEe1St6tuqwFaMZz+F9eXABEBAAG0KEdub21lIFNESyAzLjE2IDxnbm9tZS1vcy1saXN0QGdub21lLm9yZz6JATgEEwECACIFAlUUCGcCGwMGCwkIBwMCBhUIAgkKCwQWAgMBAh4BAheAAAoJEArkz6VV0VKBa5cH/0vXa31YgEjNk78gGFXqnQxdD1WYA87OYxDi189l4lA802EFTF4wCBuZyDOqdd5BhS3Ab0cR778DmZXRUP2gwe+1zTJypU2JMnDpkwJ4NK1VP6/tE4SAPrznBtmb76BKaWBqUfZ9Wq1zg3ugvqkZB/Exq+usypIOwQVp1KL58TrjBRda0HvRctzkNhr0qYAtkfLFe0GvksBp4vBm8uGwAx7fw/HbhIjQ9pekTwvB+5GwDPO/tSip/1bQfCS+XJB8Ffa04HYPLGedalnWBrwhYY+G/kn5Zh9L/AC8xeLwTJTHM212rBjPa9CWs9C6a57MSaeGIEHLC1hEyiJJ15w8jmY=

You can then install gedit with
  flatpak install --from gedit.flatpakref
2016-09-09 16:50:32 +02:00
Alexander Larsson 65a1ba186f bundles: Support updating from a bundle
Now:
 flatpak install --bundle $file
Will update the bundle if its already installed.
2016-09-09 14:54:38 +02:00
Alexander Larsson 469133f129 Add AX_COMPARE_VERSION to acinclude.m4 2016-09-09 10:03:27 +02:00
Alexander Larsson 5ef43f6ee3 builder: Bump manifest version to trigger rebuild with new mtimes
To make sure we're not using old caches with the previous mtime
timestamps encoded we bump the manifest version to force a rebuild.
2016-09-09 09:44:54 +02:00
Alexander Larsson 6689c5c7f1 Switch back to mtime==0 for ostree checkouts
OSTree upstream changed back from mtime 1
2016-09-09 09:22:56 +02:00
Alexander Larsson cd3cccf136 Require OSTree 2016.10 for mtime revert
It seems OSTree switched back to 0 for mtimes, so we have to switch
back too. We need to depend on this release to ensure that all
created repos gets things right.
2016-09-09 09:13:20 +02:00
Alexander Larsson a46f8ed1d3 Require bubblewrap 0.1.2 for system bwrap and update git submodule to that 2016-09-09 09:07:15 +02:00
Christian Hergert 227da7359c dbus-proxy: alignment bit-twiddling to remove multiple and divide
Common bit-twiddling to remove the multiply and divide for realignment.
2016-09-08 14:50:15 -07:00
Tobias Mueller 2422c386e2 flatpak-session-helper: Check for arg_argv being NULL
To prevent crashers like the following:

Starting program: /var/tmp/flatpak/libexec/flatpak-session-helper
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffed8a9700 (LWP 7893)]
[New Thread 0x7fffed0a8700 (LWP 7894)]
[New Thread 0x7fffec439700 (LWP 7895)]
session-helper/flatpak-session-helper.c:176:20: runtime error: load of null pointer of type 'const gchar'

Thread 1 "flatpak-session" received signal SIGSEGV, Segmentation fault.
0x000000000040d6ce in handle_host_command (object=0x62100001ab90,
    invocation=0x61d000014dc0, arg_cwd_path=0x0, arg_argv=0x602000003dd0,
    arg_fds=0x61900000b130, arg_envs=0x61900001d2a0, flags=1)
    at session-helper/flatpak-session-helper.c:176
176   if (*arg_argv[0] == 0)
(gdb)
2016-09-08 17:50:46 +02:00
Tobias Mueller f75e5d117d build-sign: fix short help message 2016-09-08 15:35:02 +02:00
Alexander Larsson 96f383198d flatpak-info: Move the instance specific data to a separate group
We don't want to confuse whats in the metadata file with this
runtime instance info.
2016-09-08 14:10:18 +02:00
Alexander Larsson 894df2ffb6 document portal: Rewrite sandboxed /app and /usr to the right place
This uses the sandboxed instance flatpak-info to find the actual
real files that are in use.
2016-09-08 12:54:54 +02:00