[kde-linux/kde-linux] mkosi.extra/usr/lib: Avoid flatpak-modify on a remote that may not yet exist

Philip Grant <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit ba721e59c78a3d82fe3184839c8696e07cbeae95 by Philip Grant.
Committed on 17/07/2026 at 10:12.
Pushed by ngraham into branch 'master'.

Avoid flatpak-modify on a remote that may not yet exist

M  +2    -1    mkosi.extra/usr/lib/install-new-flatpaks

https://invent.kde.org/kde-linux/kde-linux/-/commit/ba721e59c78a3d82fe3184839c8696e07cbeae95

diff --git a/mkosi.extra/usr/lib/install-new-flatpaks b/mkosi.extra/usr/lib/install-new-flatpaks
index a8928ed3..621827d7 100755
--- a/mkosi.extra/usr/lib/install-new-flatpaks
+++ b/mkosi.extra/usr/lib/install-new-flatpaks
@@ -42,8 +42,9 @@ for APP in "$FACTORY_DIR"/*; do
         SPECIAL_APP_REMOTE_URL=$(rg -A 1 "$SPECIAL_APP_REMOTE_NAME" "$REPO_CONFIG" | rg url | cut -d "=" -f 2 || true)
         SPECIAL_APP_REMOTE_FLATPAK_REPO="${SPECIAL_APP_REMOTE_URL}${SPECIAL_APP_REMOTE_NAME}.flatpakrepo"
         echo "Adding its repository from $SPECIAL_APP_REMOTE_FLATPAK_REPO"
-        flatpak remote-modify --gpg-verify "$SPECIAL_APP_REMOTE_NAME"
         flatpak remote-add --if-not-exists "$SPECIAL_APP_REMOTE_NAME" "$SPECIAL_APP_REMOTE_FLATPAK_REPO"
+        # In case the remote already existed but with GPG verification disabled...
+        flatpak remote-modify --gpg-verify "$SPECIAL_APP_REMOTE_NAME"
     fi
 
     echo "Installing $APP from $REMOTE…"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.