[neon/neon/keyring/Neon/release] debian: extra guarding for release testing setups
Carlos De Maine
null at kde.org
Thu Sep 26 12:57:13 BST 2024
Git commit aa3cd2fca9d80f9e960ab5d6fd4f55906680f26b by Carlos De Maine.
Committed on 26/09/2024 at 11:57.
Pushed by carlosdem into branch 'Neon/release'.
extra guarding for release testing setups
M +6 -1 debian/neon-keyring.postinst
https://invent.kde.org/neon/neon/keyring/-/commit/aa3cd2fca9d80f9e960ab5d6fd4f55906680f26b
diff --git a/debian/neon-keyring.postinst b/debian/neon-keyring.postinst
index e3d8d83..0ba97a3 100644
--- a/debian/neon-keyring.postinst
+++ b/debian/neon-keyring.postinst
@@ -10,7 +10,12 @@ 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 [ -e /etc/apt/sources.list.d/neon.list ]; then
+ NEONARCHIVE_RELEASE=$(grep -o http://archive.neon.kde.org/release /etc/apt/sources.list.d/neon.list)
+fi
+if [ -e /etc/apt/sources.list.d/neon.sources ]; then
+ NEONARCHIVE_RELEASE=$(grep -o http://archive.neon.kde.org/release /etc/apt/sources.list.d/neon.sources)
+fi
if [ "$NEONARCHIVE_RELEASE" = "http://archive.neon.kde.org/release" ];
then NEONARCHIVE="release";
fi
More information about the Neon-commits
mailing list