Alexander Larsson
f20e5f7823
bundles: Support dependencies and runtime-repo
...
If the bundle contains an origin link we can now install related
things from it, such as locale data.
You can also build the bundle with --runtime-repo=URL, where the url
points to a flatpakrepo file for a repo with runtimes. This works
similar to the RuntimeRepo= feature in flatpakref files.
2016-12-20 16:27:57 +01:00
Alexander Larsson
92a84cf61e
install: Report errors when finding deps
2016-12-19 20:55:12 +01:00
Alexander Larsson
4ef4a7d982
transactions: Fix leak
2016-12-19 14:19:41 +01:00
Alexander Larsson
8d1d92fd4e
remote-list: Fix leak of dirs
2016-12-19 14:19:41 +01:00
Alexander Larsson
7267669ee1
build-bundle: Fix leaks
2016-12-19 11:16:17 +01:00
Alexander Larsson
b066d863bc
Remove unused variables
2016-12-19 10:08:18 +01:00
Mario Sanchez Prada
886eeb7d4a
Support multiple --installation parameters for CLI commands
...
This affects `remote-list`, `list` and `info`, which can now pass
multiple installations to search for references in at the same time.
2016-12-17 00:56:10 +00:00
Mario Sanchez Prada
ed1b0e2b23
Add internal API: flatpak_dir_get_name()
...
This will allow us to refactor some code using in the CLI, when
we want to print the name of a FlatpakDir for detailed listings.
2016-12-17 00:56:10 +00:00
Mario Sanchez Prada
3e295085b7
Support the --installation parameter for the `flatpak info` command
2016-12-17 00:32:49 +00:00
Mario Sanchez Prada
4e68283f47
Support the --installation parameter for the `flatpak run` command
2016-12-17 00:32:48 +00:00
Mario Sanchez Prada
7d6197e3aa
Support the --installation parameter for the `flatpak list` command
...
Also, refactor code that finds and prints the references with flatpak list,
as this needed to change a bit when considering multiple installations, as
the current code was not flexible enough for dealing with that.
2016-12-17 00:32:48 +00:00
Mario Sanchez Prada
7846195da5
Support the --installation parameter for the `flatpak remote-list` command
2016-12-17 00:32:47 +00:00
Mario Sanchez Prada
a3961b4875
Support the --installation parameter for most flatpak commands
...
Other commands (e.g. remote-list) need explicit support for this parameter.
2016-12-17 00:32:46 +00:00
Mario Sanchez Prada
53a81e3f1c
Migrate flatpak-builtins-install.c to flatpak_dir_get_system_list()
...
We need to traverse now the full list of system directories here too.
2016-12-17 00:32:46 +00:00
Mario Sanchez Prada
81492a352a
Migrate flatpak-<utils|transaction>.c to flatpak_dir_get_system_list()
...
We need to traverse now the full list of system directories, as
defined in /etc/flatpak/installations.d, not just the default one.
2016-12-17 00:32:45 +00:00
Mario Sanchez Prada
22e3f83fb6
Remove internal API flatpak_dir_get(gboolean user)
...
User and system installations is no longer a binary decision, so remove
this API to force explicit calls to either flatpak_dir_get_system_default()
or flatpak_dir_get_system_list() when dealing with system installations.
2016-12-16 19:17:18 +00:00
Mario Sanchez Prada
521c3fcd4b
Rename flatpak_dir_get_system() into flatpak_dir_get_system_default()
...
There will be a way to retrieve the list of all system installations,
not just the default one, so we rename this for backward compatibility.
Note that some (most?) of the places where we will be now using this
renamed function will likely have to migrate to using specific system
installations, but we don't have the necessary APIs yet so we do this
as an initial step to all the incremental changes that will come next.
2016-12-16 19:17:13 +00:00
Alexander Larsson
cc85b93584
build-finish: Add --require-version and handling of it
...
This means that clients will refuse to install or update to your
new app if the flatpak version they are using is too old.
2016-12-14 13:48:51 +01:00
Matthew Leeds
a528db5b95
install: Fix typo
2016-12-14 09:17:24 +01:00
Alexander Larsson
e1bf3eff52
Flatpak[ref|repo]: Add Version field
...
If this is set it has to be 1, or we fail.
This lets us later introduce incompatible changes.
2016-12-13 15:54:14 +01:00
Alexander Larsson
5e80abd234
build-sign: Support empty id to mean sign all apps
2016-12-13 12:39:06 +01:00
Alexander Larsson
c4cea2489f
remote-add/modify: Fix updating remote-metadata for config
...
We recreate the OstreeRepo object in order to flush out any configuration
changes done via the system helper, so that changing the configuration works.
Should fix https://github.com/flatpak/flatpak/issues/413 .
2016-12-13 12:00:44 +01:00
Alexander Larsson
902d945f4f
install/update: Support -y to avoid interaction (for automation)
...
This assumes the answer to any question is yes (or to pick the
most prioritized answer).
Fixes https://github.com/flatpak/flatpak/issues/436
2016-12-13 11:35:06 +01:00
Alexander Larsson
f6d1a064b9
Clean up docs/help for install and remote-add
...
This makes it easier how the different variants like --from and --bundle
work.
Fixes https://github.com/flatpak/flatpak/issues/438 and
https://github.com/flatpak/flatpak/issues/439
2016-12-13 11:19:06 +01:00
Alexander Larsson
057fbcb459
install: Make --from and --bundle optional
...
If the first argument has the right extension we just assume
you want to install from it.
This fixes https://github.com/flatpak/flatpak/issues/429 and
https://github.com/flatpak/flatpak/issues/415
2016-12-13 11:13:33 +01:00
Alexander Larsson
1e854ddc11
Fix all clang warnings
2016-12-13 10:20:28 +01:00
Alexander Larsson
c756534b19
utils: Add and use FLATPAK_VARIANT_DICT_INITIALIZER
...
This fixes warnings on some versions of glib due to a private struct
change.
2016-12-13 10:08:26 +01:00
Alexander Larsson
f65f0cb37c
Merge branch 'wip/oci'
2016-12-12 16:26:35 +01:00
Alexander Larsson
9ddc4aca48
Support flatpak install --oci to install apps from OCI
2016-12-12 16:22:16 +01:00
Iago López Galeiras
27d01fc2d3
build-finish: Export MIME Types
2016-12-12 08:50:07 +01:00
Alexander Larsson
354164db8b
import: Use pull_from_oci helper
2016-12-09 14:45:10 +01:00
Alexander Larsson
791c448653
Use the shared OCI code for import-bundle
2016-12-08 17:43:06 +01:00
Alexander Larsson
4672bc835e
Update build-bundle --oci to use the new shared OCI support
2016-12-08 17:43:06 +01:00
Ignacio Casal Quinteiro
210089a066
install: fix error message
...
So we avoid an error message like:
error: Can't load uri XXXXUnacceptable TLS certificate
2016-12-07 19:54:13 +01:00
Alexander Larsson
bb6e1d535f
install: Support RuntimeRepo= key in flatpakref files
...
This allows an app to point to the repo where the runtime it uses
comes from, and the user will be asked to add that if its not
already configured.
2016-12-02 16:31:14 +01:00
Alexander Larsson
4e43dc8ae8
build-import-bundle: Sign commit if gpg key specified
2016-12-01 16:08:52 +01:00
Alexander Larsson
cc7402d6f7
commit-from: Add --force support
2016-11-30 18:09:19 +01:00
Alexander Larsson
ad7e016349
repo-update: Don't leak from_parent
2016-11-28 16:12:38 +01:00
Alexander Larsson
3e9ce0034e
repo-update: Don't leak delta_data
2016-11-28 16:12:21 +01:00
Alexander Larsson
ddb40187c6
Fix various leaks found by valgrind
2016-11-28 15:17:04 +01:00
Mario Sanchez Prada
2c05e868d9
Fix wrong reference to the user installation instead of the system one
...
This seems like a simple typo introduced in eeaa8320
, which is causing
to ignore the system installation when auto completing.
2016-11-25 08:46:48 +01:00
Alexander Larsson
ca99d5be58
build-init: Give error if initializing with a partial dependency
...
If you're building a runtime and have a base runtime with expected
extensions, fail to build if the actually installed extension is
partial (i.e. if it has a subdir specified).
Fixes https://github.com/flatpak/flatpak/issues/390
2016-11-15 11:11:00 +01:00
Alexander Larsson
3896c8d683
Support relative pathnames in various --gpg=FILE commandline options
...
We juse use g_file_new_for_commandline_arg instead of g_file_new_for_path.
This is somewhat related to https://github.com/flatpak/flatpak/issues/401
but doesn't actually handle the specific case of tilde.
2016-11-15 10:44:26 +01:00
Alexander Larsson
a8e1738860
build-finish: Don't warn for all non-valid names during export
...
Its pretty common to e.g. ship an icon theme bundled in the app,
but you then don't want to have a warning for every file.
So, instead make this a debug message.
2016-11-11 14:55:27 +01:00
Alexander Larsson
f48e863f4b
oci: Don't allow closing the json writer twice
...
We're already checking if self->str != NUL before we get the
string, but closing the writer assumes self->str != NULL.
2016-11-11 10:53:05 +01:00
Alexander Larsson
966457593d
build-sign: Don't crash if ref not found
...
As reported in https://github.com/flatpak/flatpak/issues/388
2016-11-11 10:42:29 +01:00
Mario Sanchez Prada
e06e560f50
Fix typo when checking for installed refs in the system installation
2016-11-03 11:16:43 +00:00
Alexander Larsson
6e31932221
OCI: Generate an oci image dir structure instead of a runtime
2016-10-31 20:11:14 +01:00
Alexander Larsson
fbf663ac91
remote-add: LOCATION is not optional
...
Fixes https://github.com/flatpak/flatpak/issues/377
2016-10-31 08:56:45 +01:00
Alexander Larsson
f0380434e1
Remove check for OstreeRepoExportArchiveOptions.path_prefix
...
We now hard-depend on a recent enough ostree that has this.
2016-10-28 11:02:40 +02:00