Commit Graph

1382 Commits (fc6282e8657de639812e69ecfc56139f70cd925c)
 

Author SHA1 Message Date
David King fc6282e865 bwrap: Move to under libexecdir
According to the FHS, applications which place internal libraries in
/usr/libexec should not also use /usr/lib for this purpose:

http://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch04s07.html

As several flatpak helpers are already installed in libexecdir, move
the bwrap helper to /usr/libexec/flatpak-bwrap.
2016-05-30 18:40:12 +02:00
Alexander Larsson 8533f06dc0 Add more completions 2016-05-30 14:54:22 +02:00
Alexander Larsson 4e3149e88d Properly show the help in case of no command or unknown command 2016-05-27 16:48:10 +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
Alexander Larsson c7c9505e90 Always initialize autofree variable 2016-05-27 09:19:45 +02:00
Alexander Larsson 8362d9cafe Merge pull request #36 from matthiasclasen/module-errors
flatpak-builder: Print name of failed module on error
2016-05-27 09:02:44 +02:00
Alexander Larsson f9cbcc3996 Merge pull request #49 from jsoref/spelling
spelling fixes
2016-05-27 09:02:14 +02:00
Josh Soref c33b5b52d7 spelling: whether 2016-05-27 06:49:26 +00:00
Josh Soref 8412bcf4c1 spelling: whereas 2016-05-27 06:49:15 +00:00
Josh Soref f2c22796a8 spelling: specified 2016-05-27 06:46:56 +00:00
Josh Soref 37409c4095 spelling: sections 2016-05-27 06:46:23 +00:00
Josh Soref da0d6f052d spelling: running 2016-05-27 06:46:11 +00:00
Josh Soref 2dc56c77a2 spelling: repository 2016-05-27 06:45:53 +00:00
Josh Soref 4dad6b458e spelling: repositories 2016-05-27 06:45:39 +00:00
Alexander Larsson 6b65972434 Merge pull request #47 from matthiasclasen/build-error
builder: Avoid a confusing error
2016-05-27 08:45:21 +02:00
Josh Soref 7529837367 spelling: progressive 2016-05-27 06:45:16 +00:00
Alexander Larsson 980cfe7400 Merge pull request #48 from matthiasclasen/bad-module-name
prevent confusing errors
2016-05-27 08:45:00 +02:00
Josh Soref c874ea7130 spelling: incoming 2016-05-27 06:44:02 +00:00
Josh Soref e39b94154e spelling: filesystem 2016-05-27 06:42:54 +00:00
Josh Soref c0574db1a8 spelling: elapsed 2016-05-27 06:42:21 +00:00
Josh Soref d8ceb6f5d7 grammar: dist 2016-05-27 06:41:48 +00:00
Josh Soref eaaa06ef27 spelling: distinguished 2016-05-27 06:40:23 +00:00
Josh Soref 08d25012c1 spelling: diagnostic 2016-05-27 06:39:56 +00:00
Josh Soref 147bf4fdf0 spelling: description 2016-05-27 06:39:37 +00:00
Josh Soref 56e61e6a4a spelling: deployments 2016-05-27 06:39:17 +00:00
Josh Soref ddc021911c spelling: common 2016-05-27 06:38:44 +00:00
Josh Soref 4752679157 spelling: because 2016-05-27 06:38:06 +00:00
Josh Soref 794c62cc44 spelling: available 2016-05-27 06:37:37 +00:00
Matthias Clasen c129fb7155 Document restrictions on module names 2016-05-27 00:42:37 -04:00
Matthias Clasen 5f928b30ac builder: Prefix module errors
Sprinkle g_prefix_error calls in builder-module.c, to make
sure that module-specific errors get a "module foo:" prefix.
This is not quite perfect, since callers tend to impose their
own prefix as well, but at least it clearly identifies the
module in which the error ocurred.
2016-05-27 00:25:28 -04:00
Matthias Clasen 6d1d9724c5 builder: Warn about bad module names
Putting spaces or slashes in module names is a recipe for
cryptic error from one of the many constructed flatpak
commandlines. Better warn early on, as soon as we see such
a name.
2016-05-27 00:05:55 -04:00
Matthias Clasen c89a610a91 builder: Avoid a confusing error
When the sdk is not specified in the manifest, we get a confusing
error from running flatpak info with an invalid commandline.
Avoid that by checking for the the sdk string beforehand.
2016-05-26 23:35:41 -04: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 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 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