Commit Graph
335 Commits
Author SHA1 Message Date
Alexander Larsson 70e9b2c737 update: Support specifying multiple arguments 2016-10-14 16:39:10 +02:00
Alexander Larsson 7018717ce2 install: Support installing multiple apps at the same time
Instead of using "NAME [BRANCH]" as the command list we now
support REF..., where each REF can be partial. This is easiest
explained by examples. Here are some valid refs:

  org.test.App - only app id
  app/org.test.App/x86_64/stable - full ref
  org.test.App/x86_64/stable - full ref without prefix
  org.test.App - only app id
  org.test.App//stable - only branch
  org.test.App/x86_64 - only arch

If any parts are left out they are wildcarded. Such parts are filled
first by looking at other command line arguments like --arch and
--app/--runtime. And finally by looking at what is available in the
remote. If there are multiple matches the user is told the options
in an error message.
2016-10-14 15:45:16 +02:00
Alexander Larsson c3606392aa common: Make flatpak_split_partial_ref_arg more regular and capable
Instead of in-place editing we return proper new strings. We
also handle kinds, both the defaults and supporting app/ and runtime/
prefixes.
2016-10-14 12:08:37 +02:00
Alexander Larsson c23316cb5d Add FlatpakKinds flag and use instead of booleans 2016-10-14 11:20:53 +02:00
Alexander Larsson 90bcc44e10 info: Minor cleanup 2016-10-06 12:31:54 +02:00
Alexander Larsson bef4de5308 Support default-branch setting in remote configuration
For now this is a purely client side setting which lets you store
the default branch to use for a remote. This is mostly meant to
be used for UI tools, although the CLI could also be made to use this.

You can set this manually in the CLI with --default-branch, or via a
flatpakrepo file (new key DefaultBranch).
2016-10-06 11:36:28 +02:00
Alexander Larsson 270707d5ca Make flatpak enter work
This completely regressed, and it seems complicated to fix it without
requiring extra privileges. So, the new version requires you to sudo
to run it, which is not great, but at least it makes it work for
all cases.
2016-09-28 20:20:17 +02:00
Alexander Larsson f9c11a8b55 Make "flatpak update --appstream" update for all branches
This fixes https://github.com/flatpak/flatpak/issues/331
2016-09-28 18:52:17 +02:00
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 8fa7f7fe09 Add --ostree-verbose
This enables debug logging for OSTree
2016-09-27 11:37:11 +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
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 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
Sebastian Rasmussen b21f4bf542 Prefer g_strerror() to strerror()
It handles encodins better, is thread-safe and more portable.
2016-09-15 01:22:54 +08:00
Alexander Larsson 14a11943bb update: Make --appstream work again
We need to handle opt_appstream before we try to parse the
given name as an app.
2016-09-14 16:22:55 +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
Timm Bäder f4bf8eb955 build-export: Add missing \n to g_print calls 2016-09-13 09:39:36 +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
Alexander Larsson fba645a999 Remove unused local variables reported by clang 2016-09-12 11:11:35 +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 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
Tobias Mueller f75e5d117d build-sign: fix short help message 2016-09-08 15:35:02 +02:00
Alexander Larsson 352e761c0e run: Run dbus proxy under bubblewrap
This has two advantages. First of all (and most important) it
lets us put a /.flatpak-info file in it, so that the dbus peers
it talks to have the right "source" app id and sandboxed status.

Secondly, it lets us run the bus with readonly access to things,
thus being somewhat more secure.
2016-09-08 11:21:00 +02:00
Alexander Larsson 5bf37574f1 flatpak-info: Flatten the metadata to make it more easy to parse
The info file is always standalone, as it never needs to stack on top
of another context. This means we can remove all "negative" attributes
such as "shared=!network", making it easier to parse this file.
2016-09-07 14:32:10 +02:00