From 927977b01835e9ac4f4f2202d45de985257a34f8 Mon Sep 17 00:00:00 2001 From: bbhtt Date: Thu, 19 Sep 2024 07:09:50 +0530 Subject: [PATCH] Disable compressed downloads in flatpak-builder Revert to the old behaviour, disable-http-decompression will not do anything in the manifest. The property is still kept to prevent warnings --- org.flatpak.Builder.json | 3 ++- ...tpak-builder-disable-compressed-downloads.patch | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 patches/flatpak-builder-disable-compressed-downloads.patch diff --git a/org.flatpak.Builder.json b/org.flatpak.Builder.json index efbbc5a..bc998cd 100644 --- a/org.flatpak.Builder.json +++ b/org.flatpak.Builder.json @@ -134,7 +134,8 @@ "type": "patch", "paths": [ "patches/flatpak-builder-lfs.patch", - "patches/flatpak-builder-appstream-cli-urls.patch" + "patches/flatpak-builder-appstream-cli-urls.patch", + "patches/flatpak-builder-disable-compressed-downloads.patch" ] } ] diff --git a/patches/flatpak-builder-disable-compressed-downloads.patch b/patches/flatpak-builder-disable-compressed-downloads.patch new file mode 100644 index 0000000..031e9c8 --- /dev/null +++ b/patches/flatpak-builder-disable-compressed-downloads.patch @@ -0,0 +1,14 @@ +diff --git a/src/builder-utils.c b/src/builder-utils.c +index 7c838170..55c4ab62 100644 +--- a/src/builder-utils.c ++++ b/src/builder-utils.c +@@ -1114,9 +1114,6 @@ builder_download_uri_buffer (GUri *uri, + curl_easy_setopt (session, CURLOPT_WRITEDATA, &write_data); + curl_easy_setopt (session, CURLOPT_ERRORBUFFER, error_buffer); + +- if (!disable_http_decompression) +- curl_easy_setopt (session, CURLOPT_ACCEPT_ENCODING, ""); +- + write_data.out = out; + write_data.checksums = checksums; + write_data.n_checksums = n_checksums;