5800 Commits

Author SHA1 Message Date
Alexander Larsson
bac2e70525 Update pofiles for release 1.7.2 2020-04-03 17:17:58 +02:00
Alexander Larsson
885d7b989c Bump version to 1.7.2 2020-04-03 17:05:32 +02:00
Alexander Larsson
14a64c4715 Update NEWS for 1.7.2 2020-04-03 17:05:15 +02:00
Alexander Larsson
e96ac8398e Merge pull request #3532 from alexlarsson/extra-data-size-in-summary
Extra data size in summary
2020-04-03 17:02:17 +02:00
Alexander Larsson
b4b72b8de2 Use extra-data download size from summary if available
This avoids an extra download when new new extra-data information is
available in the summary.
2020-04-03 16:45:45 +02:00
Alexander Larsson
bf0bd3874b Add extra data download size to sparse cache in summary
This adds the nr of extra datas, as well as the total size in the sparse
cache for all refs that has them. This is what we need for in the download,
and having it in the summary means we don't have to separately download
the commit.

Additionally we add a cache version field to the summary so that we
can know if we can rely on the existance of the new data.
2020-04-03 16:27:33 +02:00
Alexander Larsson
c3616ab1eb Merge pull request #3530 from alexlarsson/re-fix-progress
Re-fix progress
2020-04-03 16:25:50 +02:00
Alexander Larsson
3eaec588d7 Don't always create commitpartial files in child repos
We used to always create a commitpartial file in child repo, because
ostree doesn't follow parent repos when loading commitpartial state,
and when the commit was in the parent repo it would find the commit
but no commitpartial and assume the commit was complete and do nothing.

However, having a commitpartial file seems to break delta downloads in
ostree, as per: https://github.com/ostreedev/ostree/issues/2053
causing us to download too much data when using deltas.

So, we now only create a commitpartial if there is one in the parent
repo.  This still means we will get the ostree problems in case there
is one, but in the much more common case we avoid the issue.

In order to "fix" the uncommon case we also (separately) cap the
reported progress at 100%. (We should probably also fix the upstream
ostree issue too.)
2020-04-03 12:56:59 +02:00
Alexander Larsson
ee702c8a91 Remove outdated comments
We no longer create a transaction in flatpak_dir_setup_extra_data since
203a10ae25, so don't claim to.
2020-04-03 12:55:44 +02:00
Alexander Larsson
a154b7d28a Progress: Artificially limit progress to 100%
Due to bugs in ostree (see
e.g. https://github.com/flatpak/flatpak/pull/3524) it sometimes
happens that we download more data than we expect to. This isn't
great, but when it happens its better to limit the progress to 100%
anyway to avoid breaking apps (for example, the flatpak CLI doesn't
really handle this very well).
2020-04-03 12:53:16 +02:00
Alexander Larsson
203a10ae25 Revert "Revert "extra-data: Simplify extra-data progress setup""
This reverts commit 2120b99ac6.
2020-04-03 09:32:21 +02:00
Alexander Larsson
d276771289 Merge pull request #3528 from ispanos/patch-1
Added flatpak remote-modify reference
2020-04-02 09:02:48 +02:00
Yiannis
e459703b38 Added flatpak remote-modify reference
`flatpak remote-modify --collection-id= ` can be use to set the collection ID of the remote server.
I spent quite a while trying to find how to set it, until I found this blog post:
https://blogs.gnome.org/mclasen/2018/08/26/about-flatpak-installations/
2020-04-01 23:08:20 +03:00
Alexander Larsson
c339282215 Merge pull request #3527 from gasinvein/fish-completion
Add fish shell completion
2020-04-01 15:57:56 +02:00
Alexander Larsson
401cd4b2a5 Merge pull request #3523 from flatpak/fix-install-gpg-error
Fix "Can't pull from untrusted non-gpg verified remote" error
2020-04-01 15:56:34 +02:00
Alexander Larsson
29b553f7f3 Merge pull request #3524 from mwleeds/fix-progress-over-100
Revert "extra-data: Simplify extra-data progress setup"
2020-04-01 14:51:14 +02:00
gasinvein
4b0a87e16b Remove debugging from fish completion 2020-03-31 18:24:26 +03:00
gasinvein
620aae77df Add fish shell completion 2020-03-31 18:16:52 +03:00
Matthew Leeds
2120b99ac6 Revert "extra-data: Simplify extra-data progress setup"
This reverts commit 6deb23a322.

This commit has two unintended side effects:
1. It breaks progress bars
(https://github.com/flatpak/flatpak/issues/3448)
2. It causes us not to use static deltas
2020-03-30 16:58:14 -07:00
Matthew Leeds
8571111e13 dir: Reload remote state after migrating config
Fixes https://github.com/flatpak/flatpak/issues/3496
2020-03-30 14:07:46 -07:00
Matthew Leeds
e7fd267ac7 common: Delete no longer relevant comment 2020-03-30 13:55:47 -07:00
Matthew Leeds
ca771eb024 Merge pull request #3522 from piotrdrag/piotrdrag/update-potfiles-200330
Update POTFILES.in 200330
2020-03-30 11:48:48 -07:00
Alexander Larsson
52a9e37503 Update pofiles for release 1.7.1 2020-03-30 16:55:18 +02:00
Alexander Larsson
555e602f60 Update NEWS for release 2020-03-30 16:45:07 +02:00
Piotr Drąg
d079285e2f Update POTFILES.in 2020-03-30 16:20:56 +02:00
Alexander Larsson
b28271bb5e Merge pull request #3498 from alexlarsson/use-symlinks-for-sideload-config
Use symlinks instead of xa.sideload-repos config option
2020-03-30 16:03:54 +02:00
Alexander Larsson
c251e85315 Merge pull request #3517 from alexlarsson/extra-data-no-summary-pull
extra-data: Simplify extra-data progress setup
2020-03-30 16:03:33 +02:00
Alexander Larsson
f44a175541 Merge pull request #3520 from alexlarsson/master
Bump bubblewrap to 0.4.1
2020-03-30 15:44:34 +02:00
Alexander Larsson
bae8eef87d docs: Tweaks to sideload repo docs 2020-03-30 15:37:45 +02:00
Alexander Larsson
8cf75df52a dir: Rename variable to make things clearer 2020-03-30 15:37:26 +02:00
Alexander Larsson
c9878f040e dir: Add define for "sideload-repos" dir name 2020-03-30 15:36:54 +02:00
Alexander Larsson
6d8eb7df00 Bump bubblewrap to 0.4.1 2020-03-30 15:28:59 +02:00
Alexander Larsson
9a9dac7869 tests: Drop old reference to p2p 2020-03-30 15:05:01 +02:00
Alexander Larsson
527e6b247b Pass token to using flatpak_dir_fetch_remote_commit() when available 2020-03-30 15:03:55 +02:00
Alexander Larsson
0ef69c96db http-utils: Rename flatpak_load_http_uri to flatpak_load_uri and support file:
Various places (like the new load-commit-for-extra-data-setup) needs to
support file: uris, lets make it available generically.
2020-03-30 15:00:51 +02:00
Alexander Larsson
8ff3c4770e Merge pull request #3518 from alexlarsson/master
CI: Run on flatpak-1.6.x branch
2020-03-30 14:06:03 +02:00
Alexander Larsson
392fb03d9c CI: Run on flatpak-1.6.x branch 2020-03-30 13:36:51 +02:00
Alexander Larsson
6deb23a322 extra-data: Simplify extra-data progress setup
We need to get the commit object to setup the extra-data progress information,
and this is currently done using a complex pull operation to a temporary
repo. According to https://github.com/flatpak/flatpak/issues/3515 it
even causes an unecessary download of the summary in some cases.

Now that we don't need to support p2p we can instead directly download
the commit object using a simple http operation (or from the sideload
repos), as we know the commit id at this point anyway.
2020-03-30 13:24:15 +02:00
Alexander Larsson
d20a8ccdfd Merge pull request #3511 from yurchor/uk-update
Update Ukrainian translation
2020-03-30 09:06:12 +02:00
Yuri Chornoivan
582d04d2d8 Update Ukrainian translation 2020-03-28 21:57:23 +02:00
Alexander Larsson
e2c8838cea Merge pull request #3482 from abderrahim/flatpak-progress
Add a FlatpakProgress object
2020-03-27 17:43:31 +01:00
Alexander Larsson
c222f03c10 FlatpakProgress: Clean up APIs for handling extra data
We don't need to keep recalculating the nr of extra_data items remaining.
We know the initial value and can just decrement it each time one
completes.
2020-03-27 17:23:13 +01:00
Alexander Larsson
ed3ba39a06 Fix calculation of extra-data total size
This is a bug introduced in b03916f5bd
where we check the extra_data refs against app/ or runtime/ prefix with
arguments in the wrong order.
2020-03-27 17:21:17 +01:00
Alexander Larsson
b7f0c17762 FlatpakProgress: Handle NULL in most methods
I noticed several places in flatpak-dir.c that didn't check for
NULL progress, so lets move the check inside the implementation so
we can ensure its always checked.
2020-03-27 16:04:36 +01:00
Alexander Larsson
52224b0463 FlatpakProgress: Move default value into FlatpakProgress 2020-03-27 16:04:36 +01:00
Alexander Larsson
b1b1a6e568 FlatpakProgress: Free the GMainContext 2020-03-27 14:45:57 +01:00
Alexander Larsson
4ef12c5bc9 FlatpakProgress: No need to allocate FlatpakMainContext
We store it on the stack instead and free with
G_DEFINE_AUTO_CLEANUP_CLEAR_FUNC.
2020-03-27 14:44:00 +01:00
Alexander Larsson
a529c149ca FlatpakProgress: Use uint for bitfields
gboolean is int which is signed, and that is not good for bitfields
2020-03-27 14:40:22 +01:00
Alexander Larsson
d222d4e0d2 Merge pull request #3502 from alexlarsson/ci-gtk-doc
Enable gtk-doc in CI test
2020-03-27 09:52:18 +01:00
Alexander Larsson
4b32592677 Enable introspection on old glib test too 2020-03-27 09:39:02 +01:00