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
9d97382f82
Add internal API: flatpak_dir_get_system_by_id()
...
It will return a FlatpakDir by ID, according to the configuration.
2016-12-17 00:32:44 +00:00
Mario Sanchez Prada
1858b8987d
Add internal API: flatpak_dir_get_id()
...
This will be used both from the CLI commands and the public API.
2016-12-17 00:32:44 +00:00
Mario Sanchez Prada
d7de3225cc
Store the ID for a FlatpakDir when reading the configuration files
...
This information will be used when querying system-wide installations,
so that we can refer to those pre-configured installations by the id
defined in the configuration files under /etc/flatpak/installations.d
2016-12-17 00:32:43 +00:00
Mario Sanchez Prada
d27270635a
Add internal API: flatpak_dir_get_system_list()
...
This will return an array of FlatpakDir instances with all the system
installations configured via key files in an optional drop-in directory
under FLATPAK_CONFIGDIR/installations.d, plus the default one.
2016-12-17 00:32:38 +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
44a2d73c98
Rename flatpak_get_system_base_dir_location(void) for the default case
...
It will be called flatpak_get_system_default_base_dir_location() now, to
distinguish it from the one that retrieves all the system directories.
2016-12-16 19:17:16 +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
74e25701aa
CI: Build clang in a container
2016-12-13 16:43:44 +01:00
Alexander Larsson
017313d049
Use a VM, not a container
2016-12-13 16:43:44 +01:00
Alexander Larsson
208f562c8e
CI: Pick up build requirements from rpm
2016-12-13 16:43:44 +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
f3b188cef3
flatpak-json: Correctly handle NULL in json_to_node
2016-12-13 13:52:09 +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
da897250cc
Avoid interactive prompts when redirected, assume no
2016-12-13 11:45:16 +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
42d2c6a5d6
Update to latest bubblewrap
2016-12-13 09:29:30 +01:00
matthiasclasen
f8d801cbe6
Merge pull request #442 from chergert/master
...
po: update POTFILES.in
2016-12-13 01:47:34 -05:00
Christian Hergert
09142bfea4
po: update POTFILES.in
2016-12-12 16:33:50 -08:00
Alexander Larsson
364def2135
builder: Add some spew when applying patches
...
This makes it easier to figure out what patch is broken
2016-12-12 17:20:36 +01:00
Alexander Larsson
69253de81a
Add initial redhat-ci integration
2016-12-12 16:45:52 +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
Alexander Larsson
53c28de636
utils: Add VARIANT_BUILDER_INITIALIZER and new_empty_string_dict
2016-12-12 12:23:13 +01:00
Alexander Larsson
cf0cd287c6
Add flatpak_table_printer_add_column_len
2016-12-12 12:22:50 +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
aa9640af7e
Add flatpak_pull_from_oci helper
2016-12-09 14:44:25 +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
Alexander Larsson
63c1aace83
Import OCI initial support to common/*
2016-12-08 17:43:03 +01:00
Alexander Larsson
186ff0f002
Add flatpak_download_http_uri util function
2016-12-08 16:41:20 +01:00
Alexander Larsson
9865ed8989
utils: Disable automatic gzip content decoding in session
...
This was interacting badly with the OCI layer downloading, by
automatically uncompressing the gzip:ed layers.
2016-12-08 16:41:20 +01:00
Alexander Larsson
e514dc2e14
Add flatpak_create_soup_session
2016-12-08 16:41:20 +01:00
Alexander Larsson
652f64faad
Fix document portal add_named
...
This regressed in d488914614 where
it used to require a dir fd, but then required a regular fd.
2016-12-08 14:09:22 +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
Joaquim Rocha
1a1ec16a4f
system-helper: Do not ask for password when removing apps/runtimes
...
As it's already done for installing an app or runtime, we shouldn't ask
privileged users to authenticate in order to remove them.
2016-12-07 19:53:51 +01:00
Alexander Larsson
d3715463f2
Don't export symlinks from the host into /usr and /app
...
These make no sense, we don't want to modify the runtime, and
we can't create parent directories there anyway which can cause
issues like https://github.com/flatpak/flatpak/pull/433
2016-12-07 19:50:14 +01:00
Alexander Larsson
efc8458165
run: Record in the flatpak-info file if dbus is proxied
2016-12-07 11:31:45 +01:00
Alexander Larsson
c5856dd4e5
run: Fix xauth support
...
We need to lseek the fd *after* the fclose has
flushed the output.
2016-12-07 11:18:27 +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