[sysadmin/repo-metadata] ci-scripts: ci: Make unexisting projects errors more readable

Andrew Shark <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit cae7450e04d36d0912ba1669af59fc994462e5e4 by Andrew Shark.
Committed on 25/07/2026 at 20:17.
Pushed by ashark into branch 'master'.

ci: Make unexisting projects errors more readable

M  +8    -1    ci-scripts/verify-kde-dependencies.py

https://invent.kde.org/sysadmin/repo-metadata/-/commit/cae7450e04d36d0912ba1669af59fc994462e5e4

diff --git a/ci-scripts/verify-kde-dependencies.py b/ci-scripts/verify-kde-dependencies.py
index ad06c8de2..e1cd955ca 100755
--- a/ci-scripts/verify-kde-dependencies.py
+++ b/ci-scripts/verify-kde-dependencies.py
@@ -28,7 +28,14 @@ def check_file(file):
 
         left, right = line.split(": ")
         left = left.split("/")[-1]
-        left_active = projects_invent[left]["repoactive"]
+        if left not in projects_invent:
+            print(f"\tIn \"{file}:{linenum + 1}\"\n"
+                  f"\t\t{line}\n"
+                  f"\t\tUnexisting project referenced: {left}")
+            had_errors = True
+            left_active = True  # To prevent it appearing in the next warning message
+        else:
+            left_active = projects_invent[left]["repoactive"]
 
         if right.startswith("third-party"):
             right_active = True
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.