From bbe5b0bbd6942e03de0081e562003851cda465df Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Sat, 8 Mar 2025 23:08:41 -0800 Subject: [PATCH] fix(codium-marketplace): sed the json properly (#3827) (#3828) Honestly should use something like jq to rebuild the json properly instead imo, but whatever. Closes #3781 (cherry picked from commit 124b5c7cc69c379ed5567c84db23b968bd323dcd) Co-authored-by: madomado --- anda/devs/codium-marketplace/codium-marketplace.spec | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/anda/devs/codium-marketplace/codium-marketplace.spec b/anda/devs/codium-marketplace/codium-marketplace.spec index fba321e07f..3701d312e9 100644 --- a/anda/devs/codium-marketplace/codium-marketplace.spec +++ b/anda/devs/codium-marketplace/codium-marketplace.spec @@ -2,7 +2,7 @@ Name: codium-marketplace Version: 1.65.0 -Release: 1%?dist +Release: 2%?dist Summary: Enable vscode marketplace in vscodium License: MIT BuildArch: noarch @@ -22,7 +22,7 @@ if [ $1 -gt 1 ]; then # update/install sed -i -e 's/^[[:blank:]]*"serviceUrl":.*/ "serviceUrl": "https:\/\/marketplace.visualstudio.com\/_apis\/public\/gallery",/' \ -e '/^[[:blank:]]*"cacheUrl/d' \ -e '/^[[:blank:]]*"serviceUrl/a\ "cacheUrl": "https:\/\/vscode.blob.core.windows.net\/gallery\/index",' \ - -e 's/^[[:blank:]]*"itemUrl":.*/ "itemUrl": "https:\/\/marketplace.visualstudio.com\/items"/' \ + -e 's/^[[:blank:]]*"itemUrl":.*/ "itemUrl": "https:\/\/marketplace.visualstudio.com\/items",/' \ -e '/^[[:blank:]]*"linkProtectionTrustedDomains/d' \ /usr/share/codium/resources/app/product.json || true fi @@ -30,7 +30,7 @@ fi %preun sed -i -e 's/^[[:blank:]]*"serviceUrl":.*/ "serviceUrl": "https:\/\/open-vsx.org\/vscode\/gallery",/' \ -e '/^[[:blank:]]*"cacheUrl/d' \ - -e 's/^[[:blank:]]*"itemUrl":.*/ "itemUrl": "https:\/\/open-vsx.org\/vscode\/item"/' \ + -e 's/^[[:blank:]]*"itemUrl":.*/ "itemUrl": "https:\/\/open-vsx.org\/vscode\/item",/' \ -e '/^[[:blank:]]*"linkProtectionTrustedDomains/d' \ -e '/^[[:blank:]]*"documentationUrl/i\ "linkProtectionTrustedDomains": ["https://open-vsx.org"],' \ /usr/share/codium/resources/app/product.json || true @@ -39,9 +39,9 @@ sed -i -e 's/^[[:blank:]]*"serviceUrl":.*/ "serviceUrl": "https:\/\/open-vsx. sed -i -e 's/^[[:blank:]]*"serviceUrl":.*/ "serviceUrl": "https:\/\/marketplace.visualstudio.com\/_apis\/public\/gallery",/' \ -e '/^[[:blank:]]*"cacheUrl/d' \ -e '/^[[:blank:]]*"serviceUrl/a\ "cacheUrl": "https:\/\/vscode.blob.core.windows.net\/gallery\/index",' \ - -e 's/^[[:blank:]]*"itemUrl":.*/ "itemUrl": "https:\/\/marketplace.visualstudio.com\/items"/' \ + -e 's/^[[:blank:]]*"itemUrl":.*/ "itemUrl": "https:\/\/marketplace.visualstudio.com\/items",/' \ -e '/^[[:blank:]]*"linkProtectionTrustedDomains/d' \ /usr/share/codium/resources/app/product.json || true %files -/tmp/terra-codium-marketplace-dummy-file \ No newline at end of file +/tmp/terra-codium-marketplace-dummy-file