[sysadmin/neon-tooling] /: use setup_repo_codename var for comparison instead

Carlos De Maine <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 7b0c7e7a42e43e3748ed10c35fefc923f24633e6 by Carlos De Maine.
Committed on 21/07/2026 at 03:06.
Pushed by carlosdem into branch 'master'.

use setup_repo_codename var for comparison instead

M  +1    -1    nci/lib/setup_repo.rb
M  +1    -1    test/test_nci_setup_repo.rb

https://invent.kde.org/sysadmin/neon-tooling/-/commit/7b0c7e7a42e43e3748ed10c35fefc923f24633e6

diff --git a/nci/lib/setup_repo.rb b/nci/lib/setup_repo.rb
index 9e3c58fa..4d9b895f 100644
--- a/nci/lib/setup_repo.rb
+++ b/nci/lib/setup_repo.rb
@@ -60,7 +60,7 @@ module NCI
     return unless with_install
 
     deps = %w[neon-settings-2 pkg-kde-tools debhelper cmake quilt dh-python dh-translations]
-    if dist == "noble"
+    if setup_repo_codename == "noble"
       deps << 'pkg-tools-kde-neon'
     end
     deps << 'kde-release-keyring' unless ENV.fetch('JOB_NAME').include?('kde-keyring')
diff --git a/test/test_nci_setup_repo.rb b/test/test_nci_setup_repo.rb
index 292949f1..80cae35a 100644
--- a/test/test_nci_setup_repo.rb
+++ b/test/test_nci_setup_repo.rb
@@ -92,7 +92,7 @@ class NCISetupRepoTest < TestCase
     system_calls += [
       ['apt-get', *Apt::Abstrapt.default_args, 'update'],
       ['apt-get', *Apt::Abstrapt.default_args, 'install', 'pkg-kde-tools', 'debhelper', 'cmake', 'quilt', 'dh-python', 'dh-translations']
-    if dist == "noble"
+    if setup_repo_codename == "noble"
       ['apt-get', *Apt::Abstrapt.default_args, 'install', 'pkg-kde-tools-neon']
     end
     ]
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.