[neon/infrastructure/pangea-data] imager/config-hooks-neon: adapt to neon.sources not neon.list

Carlos De Maine null at kde.org
Fri Aug 2 15:18:57 BST 2024


Git commit d860cdea26198651c571b01d66f19107a90b1c2e by Carlos De Maine.
Committed on 02/08/2024 at 14:18.
Pushed by carlosdem into branch 'master'.

adapt to neon.sources not neon.list

M  +14   -2    imager/config-hooks-neon/repo.sh

https://invent.kde.org/neon/infrastructure/pangea-data/-/commit/d860cdea26198651c571b01d66f19107a90b1c2e

diff --git a/imager/config-hooks-neon/repo.sh b/imager/config-hooks-neon/repo.sh
index 330ea8b..93eeaaf 100644
--- a/imager/config-hooks-neon/repo.sh
+++ b/imager/config-hooks-neon/repo.sh
@@ -9,8 +9,20 @@ apt-key export '444D ABCF 3667 D028 3F89  4EDD E6D4 7362 5575 1E5D' | $GPG \
   --primary-keyring config/archives/ubuntu-defaults.key \
   --import
 
-echo "deb http://archive.neon.kde.org/${NEONARCHIVE} $SUITE main" >> config/archives/neon.list
-echo "deb-src http://archive.neon.kde.org/${NEONARCHIVE} $SUITE main" >> config/archives/neon.list
+if [ "$VERSION_CODENAME" = "jammy" ]; then
+  echo "deb http://archive.neon.kde.org/${NEONARCHIVE} $SUITE main" >> config/archives/neon.list
+  echo "deb-src http://archive.neon.kde.org/${NEONARCHIVE} $SUITE main" >> config/archives/neon.list
+else
+  cat > config/archives/neon.sources << EOF
+X-Repolib-Name: KDE neon
+Enabled: yes
+Types: deb deb-src
+URIs: $MIRROR
+Suites: $LB_DISTRIBUTION
+Components: $LB_PARENT_ARCHIVE_AREAS
+Architectures: $ARCH
+EOF
+fi
 
 # make sure _apt can read this file. it may get copied into the chroot
 chmod 644 config/archives/ubuntu-defaults.key || true


More information about the Neon-commits mailing list