From 3f60566748b2b337ca7ce194cf0d186264029669 Mon Sep 17 00:00:00 2001 From: madomado Date: Thu, 4 Jul 2024 14:10:46 +0800 Subject: [PATCH] fix: codium-marketplace (#1422) * add: codium-marketplace * arches * fix: codium-marketplace --------- Signed-off-by: madomado (cherry picked from commit 810d59fa9414adf8c3d9f5a0df6c70f2864c3bfa) --- anda/devs/codium-marketplace/codium-marketplace.spec | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/anda/devs/codium-marketplace/codium-marketplace.spec b/anda/devs/codium-marketplace/codium-marketplace.spec index bf33068b8e..fba321e07f 100644 --- a/anda/devs/codium-marketplace/codium-marketplace.spec +++ b/anda/devs/codium-marketplace/codium-marketplace.spec @@ -13,6 +13,10 @@ Requires: codium sed This package replaces the default marketplace (https://open-vsx.org/) to the official one used by vscode. +%install +touch dummy +install -Dm644 dummy %buildroot/tmp/terra-codium-marketplace-dummy-file + %posttrans if [ $1 -gt 1 ]; then # update/install sed -i -e 's/^[[:blank:]]*"serviceUrl":.*/ "serviceUrl": "https:\/\/marketplace.visualstudio.com\/_apis\/public\/gallery",/' \ @@ -38,3 +42,6 @@ sed -i -e 's/^[[:blank:]]*"serviceUrl":.*/ "serviceUrl": "https:\/\/marketpla -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