Commit Graph

2210 Commits (7f31a1acae8f9825ccd083cf450cf411e467fb68)
 

Author SHA1 Message Date
Mario Sanchez Prada 5105027499 document-portal: Removed variables not used since commit 894df2ff 2016-11-03 11:17:54 +00:00
Mario Sanchez Prada e06e560f50 Fix typo when checking for installed refs in the system installation 2016-11-03 11:16:43 +00:00
matthiasclasen 31cbc72539 Merge pull request #385 from piotrdrag/potfiles-update-161101
Update POTFILES.in 161101
2016-11-01 13:15:48 -04:00
Piotr Drąg 96c795b109 Update POTFILES.in 2016-11-01 15:07:50 +01:00
Matthew Leeds 8b50648ec0 builder: Check if .gitmodules exists before showing it. Fixes #366
This commit checks if <revision>:.gitmodules exists in the repo before
calling git-show on it, so an error message doesn't show up in the
program's output.
2016-11-01 09:30:31 +01:00
Alexander Larsson 6e31932221 OCI: Generate an oci image dir structure instead of a runtime 2016-10-31 20:11:14 +01:00
Matthias Clasen a180d067ad Avoid a crash during update --appstream
It turns out that flatpak_dir_remote_fetch_summary can return TRUE,
yet leave summary_bytes NULL. The code further down does not deal
gracefully with summary_bytes being NULL, so error out early instead
of crashing.
2016-10-31 14:03:47 +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
Piotr Drąg 63b20fb1c7 Update Polish translation 2016-10-31 08:53:00 +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
Alexander Larsson a709be6021 install --from: Try to reuse existing remotes
We don't really need to create an origin remote if the same
uri is already there for an enumeratable remote, we can
just reuse that. Having multiple remotes for a single
repository just means we'll be downloading the summary file
multiple times.
2016-10-27 10:18:47 +02:00
Matthew Leeds 2641504d5b common: Don't segfault w/o org.freedesktop.Flatpak.SystemHelper
Without this patch flatpak-remote-add (and anything else that uses this
section of code) segfaults if org.freedesktop.Flatpak.SystemHelper is
unavailable because it tries to cast an integer to a GDbusProxy.
2016-10-27 08:18:59 +02:00
Alexander Larsson 25483378a9 tests: Run flatpak-builder under valgrind too 2016-10-26 21:43:32 +02:00
Alexander Larsson 1b09719298 builder: Handle app ids with dashes in them
An app id like org.domain.App-name is now allowed (dashes in the
last element), but blindly appending e.g. ".Locale" to these
for the locale extension will cause an invalid id.

In order to handle this we replace "-" with "_" in this case, which
should be fine as both are under the org.domain control which can
make sure there are no conflicts, and there is no requirement for
the id prefixes to exactly match.

This fixes https://github.com/flatpak/flatpak/issues/370
2016-10-26 21:40:49 +02:00
Alexander Larsson fad8af2f36 builder: Break out name generation for Debug and Locale extensions
These helpers lets us tweak these names
2016-10-26 20:57:57 +02:00
Alexander Larsson 4487d78e4e Allow remote-add --from --no-gpg-verify
This overrides the requirement of the gpg key found in the flatpakref
which can be useful at times.

This fixes: https://github.com/flatpak/flatpak/issues/369
2016-10-26 20:46:35 +02:00
Alexander Larsson 47906593b8 When installing to the system dir, don't consider --user dependencies
It makes no sense to allow you to install an application systemwide
if it only works for your user. However, its generally fine if to
install a per-user app that relies on a system-installed runtime.

In particular, this fixes installing system-wide extra-data apps where
we need the runtime to be system-installed to run the unpack script.
2016-10-26 20:41:33 +02:00
Matthias Clasen 6062987162 Document who remotes can be preconfigured
This is interesting information for distributors.
2016-10-26 20:17:51 +02:00
matthiasclasen ecc0b7b3ad Merge pull request #358 from piotrdrag/potfiles-update-161019
Update POTFILES.in
2016-10-26 13:28:26 -04:00
matthiasclasen ac73a79cb9 Merge pull request #373 from yurchor/master
Update Ukrainian translation
2016-10-26 13:28:05 -04:00
Yuri Chornoivan d2991a79f4 Update Ukrainian translation 2016-10-26 19:13:25 +03:00
Alexander Larsson 339a130e50 Sort available branches in "multiple branches available" message 2016-10-26 08:46:51 +02:00
Piotr Drąg b8d22e30ad Update POTFILES.in 2016-10-25 16:35:03 +02:00
Alexander Larsson 81c55d752a Add backport of SoupRequestHTTP autoptr support 2016-10-25 16:14:44 +02:00
Alexander Larsson 224c4ee9e6 update --appstream: Don't stop at first error 2016-10-25 14:53:11 +02:00
Alexander Larsson 294c9bd7c3 update --appstream: Actually handle remote argument if specified 2016-10-25 14:39:55 +02:00
Alexander Larsson af983c2b06 Update pofiles 2016-10-25 11:39:04 +02:00
Alexander Larsson 09cc8ce976 Update NEWS for release 2016-10-25 11:24:03 +02:00
Alexander Larsson f8e405d212 install --from: Re-read config after adding origin remote 2016-10-25 10:50:47 +02:00
Alexander Larsson 95bab6cd91 common: Minor whitespace cleanup 2016-10-25 10:29:51 +02:00
Jan Jedelský 47e9283450 Add support for unmaintained extensions (#361)
See https://github.com/flatpak/flatpak/issues/167
2016-10-25 10:25:15 +02:00
Alexander Larsson 6f1709c849 install: Show entire ref in the multiple-branches error message 2016-10-24 15:34:59 +02:00
Alexander Larsson 32d5418605 Don't use the system-helper if disabled
I.e. if there is a system-installed helper, then we should not use
it if flatpak was built without the system helper.
2016-10-24 15:27:42 +02:00
Alexander Larsson 9751b709a9 Merge pull request #365 from nazgul77/master
Update German translation
2016-10-24 15:04:03 +02:00
Alexander Larsson 01a68e697b Work around ostree partial commit issue
This works around:
  https://github.com/ostreedev/ostree/issues/541

Which is causing us to not pull the entire set of objects, rather
stopping at the first object which is locally available. We fix
this by pulling twice in the subdirs != NULL case, which works
because the second time the new commit is marked partial and
we then pull the entire thing.
2016-10-24 14:36:19 +02:00
Alexander Larsson f673d544c9 Use ostree pull inherit-transation to make extra-data transactional
This means we will not end up with a partial download if something
goes wrong during the extra-data download, because we don't
commit the downloaded base files until everything is finished.

Note, this requires the latest ostree for this feature.
2016-10-24 14:36:19 +02:00
Alexander Larsson 87cc951f4a Use the new ostree argument to pull multiple subdirs in a singe pull 2016-10-24 14:36:19 +02:00
Alexander Larsson db6f65b336 Merge pull request #368 from mariospr/glib-dep
Use g_key_file_load_from_data() instead of g_key_file_load_from_bytes()
2016-10-24 13:24:53 +02:00
Mario Sanchez Prada dbaaf65d3b Use g_key_file_load_from_data() instead of g_key_file_load_from_bytes()
The g_key_file_load_from_bytes() function was added in GLib 2.50, and that
is too high as flatpak wants to support centos7/rhel7, which is now in 2.42.
2016-10-24 11:45:57 +01:00
Alexander Larsson 173897c544 Require OStree 2016.12 for new features and fixes
We want to use the new transactioned detached metadata support,
multi-subdirs pull, and inherit-transactions on pull. Also, there are
some fixes we like.
2016-10-22 10:11:09 +02:00
Christian d3cb770e10 Update German translation 2016-10-22 01:12:27 +02:00
Alexander Larsson 509a358ba3 Make looks_like_branch better
Fixes https://github.com/flatpak/flatpak/issues/359
2016-10-21 21:42:37 +02:00
Alexander Larsson c3bea6c8fc remote-add: Assume --from if location ends with .flatpakrepo
If you try to set the flatpakrepo uri as a repo uri for a new remote
things get really confused, so lets try to do the right thing anyway.
2016-10-21 12:46:38 +02:00
Alexander Larsson eb92727f65 tests: Add some more verification to the bundle tests 2016-10-21 10:30:20 +02:00
Alexander Larsson 25e39dfddd build-finish: Add --extra-data= argument 2016-10-21 08:57:42 +02:00
Alexander Larsson d7a102210f extra-data: After applying extra-data, export any exports 2016-10-21 08:57:42 +02:00
Alexander Larsson 4bea82a608 update-repo: Collect extra-data sizes for the summary 2016-10-21 08:57:42 +02:00
Alexander Larsson 906b3b5871 dir: When pulling/deploying an app, support xa.extra-data-sources
If the downloaded app has a "xa.extra-data-sources" property in
the commit, then we download these as part of the pull operation
and store the result in the commitmeta object in the repo.

Then during deploy we look at the xa.extra-data-sources properties
again and extract them from the commitmeta into /app/extra
in the app, and afterwards we run /app/bin/apply_extra in a minimal
sandbox that has read-write access to /app/extra, but nowhere else.

There are some complexities:

We need to re-verify when extracting, because the commitmeta is not
really signed, so we could have picked up random stuff there
from the upstream repo, or from an attacker misusing the system-helper
local install codepath.

When using the system-helper the pull will fail if the commitmeta
is to large, so we have some code in this case to manually transfer
the larger commitmeta on the side to the local-pull code.
2016-10-21 08:57:42 +02:00
Alexander Larsson 9c3f77da3a utils: Add flatpak_load_http_uri helper function 2016-10-21 08:57:42 +02:00
Alexander Larsson f3c71cfbf8 build-export: Read Extra Data section and put in commit metadata
If you put a section like:

[Extra Data]
uri=https://sdk.gnome.org/gno%6De.flatpakrepo
checksum=ace1b504d32eefdf05b53044e6f785fe7886cc5657b5df034c3b9ac8e3aeb70c
size=1335
uri2=http://sdk.gnome.org/gedit.flatpakref
checksum2=d8baa109fb5fdcfe90379f3e93c5ab29f11772b42bf569bb3481e4aff489b0dd
size2=1472
name2=renamed.flatpakref

Then this information will be put in the commit object and the
later will be used when downloading the app.
2016-10-21 08:57:42 +02:00