[neon/neon/keyring/Neon/release] debian: neon.sources Remove Architectures so it defaults to the dpkg default list

Jonathan Riddell null at kde.org
Wed Nov 13 12:03:01 GMT 2024


Git commit c394e951302a3171c29b27835a3bdc732561b61c by Jonathan Riddell.
Committed on 13/11/2024 at 12:02.
Pushed by jriddell into branch 'Neon/release'.

neon.sources Remove Architectures so it defaults to the dpkg default list

M  +2    -3    debian/neon-keyring.postinst

https://invent.kde.org/neon/neon/keyring/-/commit/c394e951302a3171c29b27835a3bdc732561b61c

diff --git a/debian/neon-keyring.postinst b/debian/neon-keyring.postinst
index 254763a..faf37a6 100644
--- a/debian/neon-keyring.postinst
+++ b/debian/neon-keyring.postinst
@@ -3,8 +3,6 @@
 set -ex
 
 ARCH=$(dpkg --print-architecture)
-ARCH_FOREIGN=$(dpkg --print-foreign-architectures)
-ARCH="${ARCH} $ARCH_FOREIGN"
 
 SUITE=$(grep DISTRIB_CODENAME= /etc/lsb-release | grep -oP '(?<=DISTRIB_CODENAME=).*')
 # populate NEONARCHIVE var
@@ -78,9 +76,10 @@ Types: deb deb-src
 URIs: http://archive.neon.kde.org/$NEONARCHIVE
 Suites: $SUITE
 Components: main
-Architectures: $ARCH
 Signed-By: /etc/apt/keyrings/neon-archive-keyring.asc
 EOF
+	# Remove Architectures so it defaults to the dpkg default list
+	sed -i '/Architectures/d' /etc/apt/sources.list.d/neon.sources
 
 	# remove the old preinstalled-pool.list is it's still there
 	if [ -e /etc/apt/sources.list.d/preinstalled-pool.list ]; then


More information about the Neon-commits mailing list