Commit Graph

1620 Commits

Author SHA1 Message Date
Matthew Leeds
fcd6da2fa3 builder: Print a message when running flatpak build-finish
This commit makes flatpak-builder print the flatpak build-finish command
it constructs before executing it in a subprocess, which matches the
behavior for flatpak build-init and flatpak build.
2016-07-18 14:29:41 -04:00
matthiasclasen
516641f5d7 Merge pull request #191 from ericcurtin/doc-portal-xdp-main-unused-var
Remove unused variable in this file
2016-07-17 19:16:01 -04:00
Eric Curtin
930a0a04e2 Remove unused variable in this file 2016-07-17 12:18:57 +01:00
Matthias Clasen
e09a1d23f9 Reduce gettext requirement
Drop the gettext requirement to something that is available in
Enterprise distributions. Gettext older than 0.19.7 won't support
merging translations back into xml with msgfmt, but the fallback
code to install the untranslated policy file should work for
that case.
2016-07-15 12:54:41 -04:00
Matthias Clasen
3c52321a40 Use upstream gettext
Drop the intltool dependency that was recently added, and use
upstream gettext and its its features for the same purpose.
Note that polkit currently does not install .its files (I've
sent a patch). Until that is in place, this change has the
effect of installing the untranslated policy file.
2016-07-15 11:58:46 -04:00
matthiasclasen
eb4835a31b Merge pull request #187 from cfergeau/master
Add RPM support to /modules/sources/type="archive"
2016-07-15 11:21:04 -04:00
matthiasclasen
3fc2e767c7 Merge pull request #188 from mwleeds/patch-1
doc/flatpak-install: Fix duplicate option
2016-07-15 11:20:34 -04:00
Matthew Leeds
60fb5ec03a doc/flatpak-install: Fix duplicate option 2016-07-15 11:04:34 -04:00
Christophe Fergeau
2b609c6624 Add RPM archive support 2016-07-15 11:13:28 +02:00
Christophe Fergeau
543d81c2fe Factor some zip uncompression code in a helper func 2016-07-15 11:13:28 +02:00
Matthias Clasen
a92edee9fb permission store: Add --version
It is expected that --version works.
2016-07-14 23:31:05 -04:00
Matthias Clasen
b6db220f7c document portal: Add --version
It is expected that --version works.
2016-07-14 23:28:53 -04:00
Matthias Clasen
e5a3fec139 permission store: Add --verbose and --replace
Add common commandline options, and improve error output.
2016-07-14 23:24:29 -04:00
matthiasclasen
b337f5f74e Merge pull request #185 from cosimoc/fixes
Fixes
2016-07-14 21:16:54 -04:00
Cosimo Cecchi
692125c115 run: plug a few memory leaks 2016-07-14 17:27:11 -07:00
Cosimo Cecchi
a8e3e1826f FlatpakDir: use correct function to free FlatpakContext refs
These are not keyfiles. This fixes a crash when launching applications
through gnome-sofware.
2016-07-14 17:26:02 -07:00
Matthias Clasen
5fc174be4e Link to docs from README.md 2016-07-12 01:02:22 -04:00
Matthias Clasen
bf96dd248f Build html documentation from the man pages
This will be useful for putting the docs online.
2016-07-12 00:41:13 -04:00
Matthias Clasen
86d7dd73f9 Document the permission store API
Add doc comments to the xml.
2016-07-12 00:00:45 -04:00
Matthias Clasen
6743d0122c Document the document portal API
Add doc comments to the XML.
2016-07-11 23:19:48 -04:00
matthiasclasen
9d9c8525a8 Merge pull request #179 from cosimoc/wip/open-file
Add support to open files in /app
2016-07-11 19:35:01 -04:00
Cosimo Cecchi
90a3522148 document-portal: add support to activate paths inside /app
When the document portal is called from within the sandbox with an
app-private file path, translate the path to a document portal URI in
order to make it available to other applications.
2016-07-11 15:58:29 -07:00
Cosimo Cecchi
d488914614 document-portal: factor out common code to validate FD
We're going to reuse this in another location.
2016-07-11 15:56:59 -07:00
matthiasclasen
71e60945fd Merge pull request #177 from piotrdrag/pl-translation
Add Polish translation
2016-07-09 09:44:53 -04:00
Piotr Drąg
7107fa8efe Add Polish translation 2016-07-08 22:37:41 +02:00
matthiasclasen
d1d881edf3 Merge pull request #172 from hadess/origin/wip/glib-reqs
Allow building on GLib 2.40 or older
2016-07-04 21:06:42 -04:00
Bastien Nocera
98356356e6 document-portal: Allow to build on the minimum GLib version
G_IO_ERROR_NOT_CONNECTED is new in 2.44, use the older
G_IO_ERROR_BROKEN_PIPE which is synonymous with the more readable
G_IO_ERROR_CONNECTION_CLOSED.
2016-07-05 01:16:33 +02:00
Bastien Nocera
47e3b9fb5c build: Add minimum GLib requirements
The build system did not have any minimum requirements on GLib, which is
somewhat optimistic. We rely on ostree, so the minimum version is the
same as ostree's minimum requirement, 2.40.
2016-07-04 23:40:14 +02:00
Alexander Larsson
92ab585e6f Merge pull request #171 from mariospr/no-desktop
flatpak-run: Add a new --no-desktop option to prevent creation of cgroups
2016-07-02 00:05:30 +02:00
Mario Sanchez Prada
8c8b91609c flatpak-run: Add a new --no-desktop option to prevent creation of cgroups
This is not intented for normal use, but it can be useful in cases where
we don't have a running session and sandboxing is not strictly required.
2016-07-01 22:12:04 +01:00
Alexander Larsson
51663de427 Remove unused variables 0.6.7 2016-07-01 14:45:53 +02:00
Alexander Larsson
b5204c908d builder: Clear mtime to 1, not 0, to match what new ostree does 2016-07-01 14:25:22 +02:00
Alexander Larsson
e70ddb78d3 Require ostree 2016.6
This has some important pull fixes that we want people to have.
Also it changed the mtime of checkouts from 0 to 1, so we want
to require only one of those (as flatpak has some special code for mtimes).
2016-07-01 14:05:29 +02:00
Alexander Larsson
b5f1373afb Update NEWS 2016-07-01 13:59:07 +02:00
Alexander Larsson
de7445b0b5 doc/flatpak-metadata: Add some extra clarifications 2016-07-01 11:23:38 +02:00
Alexander Larsson
6901d5f52f Merge pull request #161 from matthiasclasen/metadata-docs
Document the metadata format
2016-07-01 11:06:46 +02:00
Alexander Larsson
01d4209892 Add some code I used to test the new related refs code. 2016-07-01 10:39:56 +02:00
Alexander Larsson
5da7a0411a lib: Support listing related refs 2016-07-01 10:32:57 +02:00
Matthias Clasen
a1ef27cafb Document the metadata format
This is useful information that should be available in a
single place.
2016-06-30 20:16:48 -04:00
Alexander Larsson
b9db25c4c8 Bump version number since last release 2016-06-30 17:41:20 +02:00
Alexander Larsson
eaeb132a5a builder: Set the new extension properties
Set autodelete=true on locale and debug extensions.
Set no-autodownload=true on debug extensions.
Thats what will happen anyway, but its nice to be explicit.

Also, remove subdirectories=true on the locale extensions, as
we're not using that anymore.
2016-06-30 16:55:32 +02:00
Alexander Larsson
5ab628d0ee Install/update/uninstall related refs
Any "related" references from the same remote are automatically
handled when installing, unless you specify --no-related.

The set of related refs is based on the declared extensions for
the main ref. By default, all such extensions are automatically
installed/updated unless they have "no-autodownload" set to false
in the extension info, and its not already installed locally.

Only extensions marked as "autodelete" will be automatically deleted
when you remove the main ref.

There is some special handling:

Any *.Debug or *.Locale extension is automatically treated as "autodelete".

A *.Locale extension that is autodownloaded will be subsetted using subpaths
such that existing subpaths are kept, and the current locale is added.
2016-06-30 16:55:32 +02:00
Alexander Larsson
4a40fece78 Add flatpak_dir_install_or_update
This is needed in the case where we can do any, such as when
installing related refs, which may be already installed.
2016-06-30 16:55:31 +02:00
Alexander Larsson
8293527dbd FlatpakDir: Add flatpak_dir_find_remote/local_related
This lets us find all the "related" refs to a ref in a particular
remote, or locally.  These are the things we should automatically
download or delete when installing/updating/uninstalling the ref.

The implementation currently looks at all the extensions handled by the
app/runtime. For debug extensions and extensions marked no-autodownload we
only consider them related if its already locally installed. For locale
extensions we always consider them related, but we only pull the current
locale data for it.
2016-06-30 16:55:26 +02:00
Alexander Larsson
9558d7d6ae builder: Strip "." from locale names too
For instance, "C.utf8" => "C" or "en.utf8" => "en".
Mostly this was already handled for e.g. "en_US.utf8" though...
2016-06-30 11:47:45 +02:00
Alexander Larsson
81e61391be utils: Add flatpak_summary_match_subrefs
This is useful to do extension matching in summaries
2016-06-30 11:42:39 +02:00
Alexander Larsson
5897ddd7ef utils: Add flatpak_get_current_locale_subpaths() 2016-06-30 11:41:12 +02:00
Alexander Larsson
9be05bc511 common: Remove unused functions 2016-06-29 16:43:02 +02:00
Alexander Larsson
0be93ed1dc extensions: Always create a tmpfs for subdirectory extensions.
This makes sure we can actually create a directory as needed, and not
having to have every subdirectory pre-created in the runtime.
2016-06-29 15:56:28 +02:00
Alexander Larsson
f1a2f30e41 Add tests for extensions 2016-06-29 12:54:08 +02:00