Commit Graph

1931 Commits

Author SHA1 Message Date
matthiasclasen
d8ee3c8e72 Merge pull request #235 from matthiasclasen/better-errors2
error message for flatpak build on non existing directory could be improved
2016-09-28 05:30:07 -04:00
matthiasclasen
92699d6fce Merge pull request #315 from matthiasclasen/better-errors
More decriptive "error: Build directory ... not finalized"
2016-09-28 05:27:56 -04:00
Alexander Larsson
4374b81174 Remove whitespace 2016-09-27 14:30:52 +02:00
Matthias Clasen
2c463d3751 Warn about extra arguments in flatpak build-import-bundle 2016-09-27 14:30:11 +02:00
Matthias Clasen
6cde704f0c Warn about extra arguments in flatpak build-init 2016-09-27 14:30:11 +02:00
Matthias Clasen
4bb8a2e0b6 Warn about extra arguments in flatpak build-sign 2016-09-27 14:30:11 +02:00
Matthias Clasen
e8b05a2fa6 Warn about extra arguments in flatpak remote-ls 2016-09-27 14:30:11 +02:00
Matthias Clasen
0274bffac3 Warn about extra arguments in flatpak build-export 2016-09-27 14:30:11 +02:00
Matthias Clasen
a9e6542354 Warn about extra arguments in flatpak document-unexport 2016-09-27 14:30:11 +02:00
Matthias Clasen
fe5a4d724a Warn about extra arguments in flatpak document-list 2016-09-27 14:30:11 +02:00
Matthias Clasen
e1a4e46650 Warn about extra arguments in flatpak document-info 2016-09-27 14:30:11 +02:00
Matthias Clasen
c9bac3611f Warn about extra arguments in flatpak document-export 2016-09-27 14:30:11 +02:00
Matthias Clasen
361e90bdaa Warn about extra arguments in flatpak make-current 2016-09-27 14:30:11 +02:00
Matthias Clasen
4c0df29123 Warn about extra arguments in flatpak uninstall 2016-09-27 14:30:11 +02:00
Matthias Clasen
cc82fd6da6 Warn about extra arguments in flatpak update 2016-09-27 14:30:11 +02:00
Matthias Clasen
902eae0ac6 Warn about extra arguments in flatpak install 2016-09-27 14:30:11 +02:00
Matthias Clasen
34e7158faf Warn about extra arguments in flatpak build-bundle 2016-09-27 14:30:11 +02:00
Matthias Clasen
6e679c4277 Warn about extra arguments in flatpak override 2016-09-27 14:30:11 +02:00
Matthias Clasen
23872464a0 Warn about extra arguments in flatpak info 2016-09-27 14:30:11 +02:00
Matthias Clasen
85f2f36baf Warn about extra arguments in flatpak remote-add 2016-09-27 14:30:11 +02:00
Matthias Clasen
689bd242d1 Warn about extra arguments in flatpak remote-delete 2016-09-27 14:30:11 +02:00
Matthias Clasen
ab2280fa5c Warn about extra arguments in flatpak remote-list 2016-09-27 14:30:11 +02:00
Matthias Clasen
1e05119b63 Warn about extra arguments in flatpak list 2016-09-27 14:30:11 +02:00
Matthias Clasen
3d1f385148 Port remote-ls to FlatpakTablePrinter
This helps with consistent formatting.
2016-09-27 14:22:12 +02:00
Alexander Larsson
0501e1569c commit-from: Add "xa.commit-from" to the destination metadata
This is nice because it guarantees that we get a new commit id
which fixes various issues we had with conflicting commit ids
overriding each others signatures.
2016-09-27 12:39:44 +02:00
Alexander Larsson
af76206ba5 common: Add flatpak_variant_builder_init_from_variant 2016-09-27 12:39:27 +02:00
Alexander Larsson
8fa7f7fe09 Add --ostree-verbose
This enables debug logging for OSTree
2016-09-27 11:37:11 +02:00
matthiasclasen
d0469895e2 Merge pull request #327 from piotrdrag/pl-update-160925
Updated Polish translation
2016-09-25 16:37:02 -04:00
Piotr Drąg
217e43b0c7 Updated Polish translation 2016-09-25 19:51:14 +02:00
Matthias Clasen
0e9125619c Improve an error message
When the build directory does not exist or looks uninitialized
in flatpak build, report a helpful message that points at
flatpak build-init.
2016-09-24 16:04:04 -04:00
Matthias Clasen
39e29f7cb1 Mention the commands to run in error messages
When complaining that a build directory has not been initialized
or finalized, mention the commands to do so.
2016-09-24 11:04:16 -04:00
Alexander Larsson
636130db49 Merge pull request #299 from matthiasclasen/keyring
flatpak should close up access to kernel keyring
2016-09-21 07:12:30 +02:00
Alexander Larsson
9792ee1d4a post release version bump 2016-09-20 16:26:59 +02:00
Alexander Larsson
cb180540a6 Update pofiles 0.6.11 2016-09-20 16:12:38 +02:00
Alexander Larsson
91c9d474dd flatpak-builder: Add support for --show-deps 2016-09-20 15:58:43 +02:00
Alexander Larsson
ef7cf7ac92 Fix tests: Don't try to use policykit during the tests
Creating a policykit proxy was causing timeouts for me for unclear
reasons when running under the tests. But we're not using policykit at
all during the tests, so we can just avoid this call completely.
2016-09-20 05:56:19 +02:00
Alexander Larsson
2fc9d5973e Update NEWS for release 2016-09-19 16:44:27 +02:00
Alexander Larsson
acc561c6fc Add versioning info to the appinfo file. 2016-09-19 16:33:48 +02:00
Alexander Larsson
9e6421d0d9 common: Accept empty/no url in modify_remote
This means that the remote is there, but disabled.
This is needed for e.g. bundles without origin url, and when bundles
starting using this codepath this regressed like in:
 https://github.com/flatpak/flatpak/issues/314
2016-09-19 16:27:54 +02:00
Matthias Clasen
2bfb1b435a Don't allow access to the kernel keyring
For now, we don't use the kernel keyring for anything, so it is
better to shut off the access to it.
2016-09-18 16:50:32 -04:00
matthiasclasen
4b3636a452 Merge pull request #312 from mariospr/misc-fixes
Fix typo and use the right function to get the system installation
2016-09-18 12:57:51 -04:00
matthiasclasen
59d1068bd6 Merge pull request #313 from chergert/master
doc: add blurb about what --allow=devel does
2016-09-18 07:04:44 -04:00
Christian Hergert
fdee71b36a doc: add blurb about what --allow=devel does
This adds a short bit of text on what the --allow=devel build-finish
argument does (which allows access to perf and ptrace syscalls).
2016-09-17 10:08:39 -07:00
Alexander Larsson
5c075525a8 Allow application ids containing "-"
For a long time we have been disallowing "-" in application names,
which is different than what dbus allows for bus names. Also "-" used
to be not allowed by GApplication in glib. This is in part because
dbus object paths do *not* allow dashes, so you can't legally map
from e.g. a valid name like "org.foo-bar.gazonk" to a valid path
like "/org/foo-bar/gazonk".

This is a problem because many existing apps already use "-" in the
name, either as the last part (org.gnome.font-viewer) or because
the dns name it refers to has a dash.

This was recently discussed in the dbus community, and the result
is to recommend that "-" in the bus names be converted to "_" in object
paths.

This change makes it also allowed to have "-" in a flatpak app id.

For flatpak specifically we were relying on "-" not being allowed to
handle the case of exporting "org.foo.App-symbolic.png". If "-" is
allowed this name can conflict between apps called "org.foo.App-symbolic"
and "org.foo.App".

To handle this we add two special cases:
 * App ids can't end with "-symbolic".
 * Apps are allowed to export files with $appid-symbolic as prefix.
2016-09-16 16:44:05 +02:00
Mario Sanchez Prada
0f005e7939 Fix typo and use the right function to get the system installation 2016-09-16 13:27:38 +00:00
Alexander Larsson
cf47870ea6 Merge pull request #311 from chergert/master
session-helper: use proper fd with ioctl() for tty setup
2016-09-16 09:24:31 +02:00
Christian Hergert
b3489c3557 session-helper: use proper fd with ioctl() for tty setup
This was using the "from" fd from the fd_map, which will have already been
closed by time we reach this portion of the child setup.

Tracking the movement of FDs while resolving the remappings is rather
tedious and error prone, so just locate the final fd before calling
the ioctl() in child setup.
2016-09-15 21:38:06 -07:00
Alexander Larsson
c2b8ac2f63 Merge pull request #307 from muelli/crash
builder: check for name being defined in expand_modules
2016-09-15 15:43:43 +02:00
Alexander Larsson
dcfef2d29d install: Fix option args for --from
This doesn't have any args, since its type ARG_NONE.
This was causing commandline completion to add an "=" after --from
which isn't right.
2016-09-15 11:44:11 +02:00
Alexander Larsson
a5fe681032 Merge pull request #306 from matthiasclasen/flatpakref-docs
Document the flatpakref file format
2016-09-15 11:42:35 +02:00