summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* README: Link to Flathub discoursereadme-link-to-discourseMatthew Leeds2020-05-111-1/+1
| | | | | | | We don't have a separate discourse for Flatpak; it seems fine to link to the Flathub one. Fixes https://github.com/flatpak/flatpak/issues/3602
* tokens: Request tokens during resolve if we get 401 statusAlexander Larsson2020-05-051-5/+39
| | | | | | If downloading a specific commit (or oci manifest) we may get a 401 back. If so, request a token and try again. In this case we don't yet know the token type, so pass MAXINT32 for "don't know".
* Add FLATPAK_HTTP_ERROR_UNAUTHORIZED (i.e. http status 401)Alexander Larsson2020-05-052-0/+6
|
* Rename internal error FLATPAK_OCI_ERROR to FLATPAK_HTTP_ERRORAlexander Larsson2020-05-055-19/+20
| | | | | This is what it is really, and I want to extend it with more http errors that are not necessarily oci related.
* oci: Don't crash when loading manifest by digest with no ref labelAlexander Larsson2020-05-051-1/+1
|
* oci: Actually respect the commit argument when pullingAlexander Larsson2020-05-051-7/+13
| | | | | We now allow this to be set with update --commit=123abc in the oci case too.
* oci: Support reconstructure individual commit objects (sorta)Alexander Larsson2020-05-051-2/+98
| | | | | | This downloads a manifest by digest and reconstructs the commit except for the tree/metadata reference. This allows things like flatpak remote-info and flatpak update --commit=xxx to work.
* dir: Add flatpak_remote_state_new_oci_registry helperAlexander Larsson2020-05-051-34/+42
| | | | This is duplicated in a few places
* dir: Share some code that downloads commit objectsAlexander Larsson2020-05-054-155/+88
| | | | | | | | | Only have the single function flatpak_remote_state_load_ref_commit() that loads the commit objects (and don't support loading other types of objects as that is not used). This is a minor cleanup, but it also will be useful later when we want to be able to "load" commits from OCI repositories.
* Tests: Support HEAD requests in oci-registry-serverAlexander Larsson2020-05-041-0/+3
| | | | | This just does a GET, which is not quite right, but will work. This is needed for the authenticator.
* tests: Make OCI authenticator availableAlexander Larsson2020-05-041-1/+6
|
* oci authenticator: Accept the right docker manifest when authenticatingAlexander Larsson2020-05-041-0/+3
| | | | | | | | | Without this I got for the fedora registry: ``` getting token for https://registry.fedoraproject.org/v2/f32/flatpak-runtime/manifests/sha256:bd83b4f6974094848efac22b933419c1dbe11b553def148a82f821faf595de8a F: Anonymous authentication failed: Unexpected response status 404 from repo ```
* oci authenticator: Make the authentication debug logs a bit more verboseAlexander Larsson2020-05-041-1/+8
|
* By default, always try to auth to OCI remotesAlexander Larsson2020-05-042-0/+9
| | | | This makes for instance docker hub work.
* dir: set cache directory when creating child reposAbderrahim Kitouni2020-05-041-0/+9
|
* Update hr.pomilotype2020-05-041-104/+109
| | | Update according to .po file from https://l10n.gnome.org/vertimus/flatpak/master/po/hr/
* Update Brazilian Portuguese translationRafael Fontenelle2020-05-041-139/+132
|
* app: Add translators comments about sideloadingMatthew Leeds2020-05-045-0/+5
| | | | Fixes https://github.com/flatpak/flatpak/issues/3546
* remote-info: Move newlineMatthew Leeds2020-05-041-1/+1
| | | | | Logically, the SDK should be listed with the app info right after the runtime, not in the commit section.
* update: Restrict --commit to one app/runtimeMatthew Leeds2020-05-041-0/+4
| | | | | | Currently if you run "flatpak update --commit=XYZ", we try to use that commit for every installed thing, which doesn't make much sense. Make it an error not to specify a ref with --commit.
* Rename registered cgroups to have app- prefixDavid Edmundson2020-05-041-1/+1
| | | | | | | | | | | The newly added https://systemd.io/DESKTOP_ENVIRONMENTS/ lists an XDG defined specification for how cgroups for applications should be named. This will allow flatpak's to correctly follow any drop-in's set for applications on the system as well as help next-gen system monitor's treat flatpaks as applications. flatpak-session-helper.service is unaffected.
* Merge pull request #3580 from pwithnall/related-to-opsMatthew Leeds2020-04-304-32/+56
|\ | | | | flatpak-transaction: Change related_to_op to related_to_ops
| * flatpak-transaction: Change related_to_op to related_to_opsPhilip Withnall2020-04-304-32/+56
|/ | | | | | | | | | | Since a single runtime (for example) can be related-to several apps, that needs to be representable in the data format. This is an API break, but only of API which has not been released yet. See https://github.com/flatpak/flatpak/pull/3568#issuecomment-618251958 Signed-off-by: Philip Withnall <withnall@endlessm.com>
* Merge pull request #3578 from flatpak/tiny-typo-fixMatthew Leeds2020-04-271-1/+1
|\ | | | | list: Fix a tiny whitespace error
| * list: Fix a tiny whitespace errorMatthew Leeds2020-04-271-1/+1
|/
* Tests: Fix test due to change in uninstall behaviourAlexander Larsson2020-04-231-1/+1
| | | | | Removing multiple refs where one is missing is now a warning, not a failure, so change the test to just try to remove one ref.
* Don't error out in uninstall when one ref is not installedGerman Perconti2020-04-231-6/+12
|
* Import German translations from Endless OSWill Thompson2020-04-231-7/+8
| | | | | | | | | | | When we add significant new source strings downstream, Endless adds projects to our Transifex instance to get translations from paid translators and community contributors. Since we no longer add new source strings to Flatpak, we're removing it from our infrastructure. I checked which strings we have translations for downstream that are not present (if perhaps different) upstream, and these German translations from a community member are it.
* flatpak-transaction: Clarify units in documentationPhilip Withnall2020-04-231-2/+2
| | | | | | | While it can be worked out from the context, it’s clearer to state the units that download and installed sizes are calculated in explicitly. Signed-off-by: Philip Withnall <withnall@endlessm.com>
* flatpak-transaction: Clarify some documentation around skipped opsPhilip Withnall2020-04-231-2/+6
| | | | | | | Make it explicit that skipped ops are excluded when returning the ops in a transaction, or when working out whether it’s empty. Signed-off-by: Philip Withnall <withnall@endlessm.com>
* flatpak-transaction: Add flatpak_transaction_operation_get_is_skipped()Philip Withnall2020-04-232-0/+23
| | | | | | | | | This exposes the `skip` member of `FlatpakTransactionOperation`, as it’s needed for callers to usefully traverse the operation graph (which is now accessible using `flatpak_transaction_operation_get_related_to_op()`). Signed-off-by: Philip Withnall <withnall@endlessm.com>
* Add sysusers.d configuration fileValentin David2020-04-233-2/+19
| | | | This will make systemd create the system-helper user if it is missing.
* dir: Fix a typo in a flags enum namePhilip Withnall2020-04-231-1/+1
| | | | Signed-off-by: Philip Withnall <withnall@endlessm.com>
* transaction: Fix a typo in a commentMatthew Leeds2020-04-161-1/+1
|
* testlibrary: Simplify code a bitMatthew Leeds2020-04-161-15/+1
|
* testlibrary: Fix a whitespace issueMatthew Leeds2020-04-161-1/+1
|
* installation: Re-implement list_installed_refs_for_update()Matthew Leeds2020-04-169-208/+327
| | | | | | | | | | | | | | | | Re-implement flatpak_installation_list_installed_refs_for_update() using a FlatpakTransaction, so we can guarantee it always gives the same set of things to update as the update command. This API is used by GNOME Software and many times in the past g-s has not shown the same list of apps to be updated as the flatpak CLI. See: - https://gitlab.gnome.org/GNOME/gnome-software/issues/539 - https://gitlab.gnome.org/GNOME/gnome-software/-/merge_requests/430 This commit also expands the unit tests for this API, which were already quite good. Now we test that missing subpaths of locale extensions show up as updates, and updates that have been pulled but not deployed show up as well. The latter is a break from how this function used to behave, but it seems unlikely to break any application.
* transaction: Use correct subpaths for localesMatthew Leeds2020-04-161-2/+19
| | | | | | | | | | | | | | | | | Currently, if you add an app update to a transaction and its locale extension does not have subpaths installed for every configured language, the locale will be updated accordingly. But if you add only the locale extension to the transaction to be updated, the transaction is a no-op because we treat subpaths == NULL to mean the currently installed set of subpaths, and flatpak_dir_needs_update_for_commit_and_subpaths() decides there's nothing to do. This doesn't seem like the right behavior, so update flatpak_transaction_add_ref() so that we take the configured set of locales into account as we do in add_related(). This will help the unit test in the following commit to pass.
* transaction: Add transaction_operation_get_related_to_op()Matthew Leeds2020-04-162-0/+26
| | | | | | This will be used in the following commit, so we can track what installed thing needs an update when there's a transaction operation to e.g. install its missing runtime or extension.
* installation: Replace some debug statementsMatthew Leeds2020-04-161-2/+2
| | | | These were committed recently by accident; use g_debug() instead.
* Update russian translation (#3547)BiteDasher2020-04-161-59/+45
| | | | | * Update russian translation Some strings have been fixed
* Update Croatian hr.pomilotype2020-04-161-111/+28
|
* quiet-transaction: Remove side-effect on no-interactionMatthew Leeds2020-04-161-0/+18
| | | | | | | | | | | Currently when you create a FlatpakQuietTransaction object using a FlatpakDir, the dir will have no_interaction set to TRUE even after the transaction runs. I don't think it makes sense to have a side effect like that, and it causes the remote-delete command to fail in the case where it has to uninstall things. So, restore the old no_interaction value during destruction of the FlatpakQuietTransaction. Fixes https://github.com/flatpak/flatpak/issues/3140
* CUPS socket: do not print error when we found CUPS serverJan Grulich2020-04-161-3/+4
|
* Update russian translation (#3535)BiteDasher2020-04-071-895/+797
| | | | | | * Update russian translation 100% complete
* Merge pull request #3543 from bittin/patch-1Alexander Larsson2020-04-071-688/+630
|\ | | | | Update sv.po
| * Update sv.pobittin2020-04-071-688/+630
|/ | | Trying to do a PR with updated Swedish translations
* Update pofiles for release1.7.2Alexander Larsson2020-04-0317-2318/+2414
|
* Bump version to 1.7.2Alexander Larsson2020-04-031-1/+1
|
* Update NEWS for 1.7.2Alexander Larsson2020-04-031-0/+10
|