Commit Graph

1349 Commits

Author SHA1 Message Date
Alexander Larsson
9ec3e7346b main: Report unknown command before unknown arg
This fixes: https://github.com/flatpak/flatpak/issues/23
2016-05-26 19:48:25 +02:00
Alexander Larsson
22adaa3c8c info: Default to whatever branch is installed 2016-05-26 19:08:46 +02:00
Alexander Larsson
c48272c6db uninstall: Default to whatever branch is installed 2016-05-26 19:08:46 +02:00
Alexander Larsson
0b4241b0e5 update: Don't exist on first failure when there are multiple updates 2016-05-26 19:08:42 +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
e9e92b79fe builder: Support argument to the command with --run
For instance, this lets you do:

  flatpak-builder app foo.json ls -l

Without flatpak-builder complaining about not knowing "-l".
2016-05-26 12:44:51 +02:00
Alexander Larsson
33c0d49212 builder: Support permission ops with --run 2016-05-26 12:24:43 +02:00
Alexander Larsson
f6b4e8ead6 builder: Make the options and help output for --run a bit nicer
We now pre-process for the --run argument in order to only show
related arguments.
2016-05-26 11:20:23 +02:00
Alexander Larsson
bde6fa52dc build: Handle setting LD_LIBRARY_PATH when bwrap is setuid
We need to pass LD_LIBRARY_PATH as --setennv, because the setuid
helper strips that. We did this already for run, but this moves it
so its used by build too.
2016-05-26 09:43:56 +02:00
Alexander Larsson
282709d9ec Fix resolv.conf in "flatpak build"
This regressed when we moved to bubblewrap. We need to always use
a direct bind for building, because it may not necessarily happen
in a real user session where the session-helper works.
2016-05-25 16:38:50 +02:00
Alexander Larsson
3703837336 run: Don't crash if referencing an xdg-dir that is not configured 2016-05-25 14:12:36 +02:00
Alexander Larsson
1fd698a34c Merge pull request #26 from stbergmann/master
exec* returns -1 on error
2016-05-25 10:20:57 +02:00
Stephan Bergmann
3b6b0da108 exec* returns -1 on error
...so use the == -1 idiom as already used in common/flatpak-run.c
(another fix would be to drop the if completely, as exec* doesn't
return on success)
2016-05-24 17:44:33 +02:00
Alexander Larsson
cb41e1bdba Correctly handle --with-privileged-group 2016-05-24 14:13:34 +02:00
Alexander Larsson
949d4eccf7 Updated for 0.6.2 release 0.6.2 2016-05-24 13:20:25 +02:00
Alexander Larsson
9fdc9cd80a New bubblewrap branch with updated setuid fix 2016-05-24 11:00:33 +02:00
Alexander Larsson
2b6f4f1bcf Add --with-privileged-group options
This allows distros to change the wheel group into something else,
for instance admin (ubuntu) or sudo (debian).
2016-05-24 10:13:23 +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
1ce0ad7878 Merge pull request #24 from smcv/no-xattr
Skip tests that make a repository if /var/tmp lacks user xattrs
2016-05-24 09:46:10 +02:00
Alexander Larsson
70c2da02ed Update PRIV_MODE_SETCAPS with the new required caps
We now need setuid/setgid caps too.
2016-05-24 09:44:48 +02:00
Simon McVittie
a461eb50fa Skip tests that make a repository if /var/tmp lacks user xattrs
Signed-off-by: Simon McVittie <smcv@debian.org>
2016-05-23 23:00:37 +01:00
Alexander Larsson
d6593d65e6 Post release version bump 2016-05-23 11:05:06 +02:00
Alexander Larsson
42d08ed18c NEWS/version: Update to 0.6.1 0.6.1 2016-05-23 09:22:41 +02:00
Alexander Larsson
4bad34f49e readme: Update the link 2016-05-23 09:17:54 +02:00
Alexander Larsson
578d2cc9cf bwrap: Use --unshare-user-try
This makes the user ns optional, as it is not supported everywhere.
For instance Arch disables it by default.
2016-05-23 09:10:39 +02:00
Alexander Larsson
13a02c8d01 Update bubblewrap to export/flatpak/0.6.1 branch
This has fixes for setuid mode without userns support.
Should fix arch and debian support.
2016-05-23 08:56:46 +02:00
Alexander Larsson
958a4b45a7 lib: Fix order of ref/remote in update call 2016-05-20 14:29:54 +02:00
Alexander Larsson
910328e535 Support no-deploy and no-pull via system helper 2016-05-20 13:30:50 +02:00
Alexander Larsson
24d4b60f60 Fix build if SCMP_ARCH_AARCH64 not defined 2016-05-20 11:07:34 +02:00
Alexander Larsson
e9c67ec47f Get the system installation dir right in XDG_DATA_DIRS
Its in /var/lib/flatpak, not /var/flatpak
2016-05-20 09:21:19 +02:00
Tristan Van Berkom
501802270e flatpak-builtins-update.c: Fixed loading of arch option
Code was organized in such a way that the --arch option
was being ignored.

https://bugs.freedesktop.org/show_bug.cgi?id=95489
2016-05-19 12:43:01 +02:00
Alexander Larsson
9377d0d94f Merge pull request #164 from amigadave/master
Fix ostree requirement in NEWS
2016-05-19 09:26:37 +02:00
David King
bed242270e Fix ostree requirement in NEWS 2016-05-18 15:44:05 +01:00
Bastien Nocera
313d5fb2d3 lib: Fix compilation warnings
lib/flatpak-installation.c: In function ‘flatpak_installation_modify_remote’:
lib/flatpak-installation.c:738:12: warning: return makes integer from pointer without a cast [-Wint-conversion]
     return NULL;
            ^~~~
lib/flatpak-installation.c: In function ‘flatpak_installation_remove_remote’:
lib/flatpak-installation.c:773:12: warning: return makes integer from pointer without a cast [-Wint-conversion]
     return NULL;
            ^~~~
2016-05-18 13:48:23 +02:00
Alexander Larsson
e020803554 utils: remove_dangling_symlinks() - fix leak
We were not freeing the iterator.
2016-05-18 13:42:58 +02:00
Alexander Larsson
c635633e6b Add --with-system-install-dir option 0.6.0 2016-05-18 11:11:03 +02:00
Alexander Larsson
c6486d01a2 tests: Fix distcheck
Don't clean out the test files on a regular clean.
2016-05-18 10:45:16 +02:00
Alexander Larsson
4af71aae7b Fix distcheck: clean up some more generated files 2016-05-18 10:30:47 +02:00
Alexander Larsson
1216e0ea68 tests: Fix distcheck breaking on gpg dir not writable
We make a copy of the gpg homedir so that gpg can write (e.g. a lock file)
to the directory.
2016-05-18 10:26:11 +02:00
Alexander Larsson
d961290d40 tests: EXTRA_DIST the test keyrings 2016-05-18 10:16:59 +02:00
Alexander Larsson
b3853f45af Update version to 0.6.0 2016-05-17 18:53:34 +02:00
Alexander Larsson
8397a15a3b Update to latest bubblewrap 2016-05-17 18:25:33 +02:00
Simon McVittie
aa91b28a74 test-configure: use correct quoting
CFLAGS, FOO, BAR may contain spaces.

Signed-off-by: Simon McVittie <smcv@debian.org>
2016-05-17 18:05:41 +02:00
Simon McVittie
d4738cca16 tests: skip running flatpak at build time if bwrap doesn't work
Distribution autobuilders are often more locked-down than the
environment in which the distribution binaries actually run.

Signed-off-by: Simon McVittie <smcv@debian.org>
2016-05-17 18:05:12 +02:00
Simon McVittie
d6b1c9ff3c tests: package_version.txt is in the $builddir
Signed-off-by: Simon McVittie <smcv@debian.org>
2016-05-17 18:01:46 +02:00
Simon McVittie
70e70d2f6a test-doc-portal: rely on service activation to start D-Bus service
This is a more realistic integration test anyway.

Signed-off-by: Simon McVittie <smcv@debian.org>
2016-05-17 17:59:23 +02:00
Simon McVittie
4828632456 test-doc-portal: rely on G_TEST_BUILDDIR to find services
Signed-off-by: Simon McVittie <smcv@debian.org>
2016-05-17 17:59:04 +02:00
Simon McVittie
513f795c65 testdb: rely on G_TEST_SRCDIR to find databases
Signed-off-by: Simon McVittie <smcv@debian.org>
2016-05-17 17:57:24 +02:00
Simon McVittie
a7a49065a7 Don't install non-executable test files executable
Signed-off-by: Simon McVittie <smcv@debian.org>
2016-05-17 17:55:42 +02:00
Alexander Larsson
3d232bbe15 Merge pull request #161 from smcv/spelling
Fix various spelling mistakes
2016-05-17 17:51:20 +02:00