[neon/neon/keyring/Neon/release] debian: guard against release edition testing setups
Carlos De Maine
null at kde.org
Thu Sep 26 12:38:53 BST 2024
Git commit 73a9a767af2fa557d8e468b4c07677b19fe04bb0 by Carlos De Maine.
Committed on 26/09/2024 at 11:38.
Pushed by carlosdem into branch 'Neon/release'.
guard against release edition testing setups
M +5 -0 debian/neon-keyring.postinst
https://invent.kde.org/neon/neon/keyring/-/commit/73a9a767af2fa557d8e468b4c07677b19fe04bb0
diff --git a/debian/neon-keyring.postinst b/debian/neon-keyring.postinst
index ce2c1fd..e3d8d83 100644
--- a/debian/neon-keyring.postinst
+++ b/debian/neon-keyring.postinst
@@ -9,6 +9,11 @@ NEONARCHIVE_USER=$(grep -o User /etc/lsb-release | tr '[:upper:]' '[:lower:]' )
if [ "$NEONARCHIVE_USER" = "user" ];
then NEONARCHIVE=$NEONARCHIVE_USER;
fi
+# guard against release edition testing setups
+NEONARCHIVE_RELEASE=$(grep -o http://archive.neon.kde.org/release /etc/apt/sources.list.d./neon.list)
+if [ "$NEONARCHIVE_RELEASE" = "http://archive.neon.kde.org/release" ];
+ then NEONARCHIVE="release";
+fi
NEONARCHIVE_TESTING=$(grep -o Testing /etc/lsb-release | tr '[:upper:]' '[:lower:]' )
if [ "$NEONARCHIVE_TESTING" = "testing" ];
then NEONARCHIVE=$NEONARCHIVE_TESTING;
More information about the Neon-commits
mailing list