[sdk/kde-builder] kde_builder_lib: fix: Do not warn about removed qt6-set projects in case they were not required explicitly

Andrew Shark <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 6c92993eb3a83ceedc88ad4db0ed18799d5f3254 by Andrew Shark.
Committed on 26/07/2026 at 15:19.
Pushed by ashark into branch 'master'.

fix: Do not warn about removed qt6-set projects in case they were not required explicitly

M  +6    -4    kde_builder_lib/module_resolver.py

https://invent.kde.org/sdk/kde-builder/-/commit/6c92993eb3a83ceedc88ad4db0ed18799d5f3254

diff --git a/kde_builder_lib/module_resolver.py b/kde_builder_lib/module_resolver.py
index 4266e497..e1dac912 100644
--- a/kde_builder_lib/module_resolver.py
+++ b/kde_builder_lib/module_resolver.py
@@ -325,7 +325,10 @@ class ModuleResolver:
                     # by building all). We should not allow building qt modules in such case.
                     # Otherwise, as their real "install-dir" is empty, their CMAKE_INSTALL_PREFIX will be incorrect (set to empty), and such
                     # modules could not pass cmake configure.
-                    logger_modres.warning(f" y[*] Removing y[third-party]/y[{module.name}] due to qt-install-dir")
+                    if module.name in self.explicit_thirdparty_selectors:
+                        logger_modres.warning(f" y[*] Removing y[third-party]/y[{module.name}] due to qt-install-dir")
+                    else:
+                        logger_modres.debug(f"Removing y[third-party]/y[{module.name}] due to qt-install-dir")
                     continue
 
             if module.is_kde_project():
@@ -339,11 +342,10 @@ class ModuleResolver:
                 if branch == "":  # Note that None means it was not mentioned, while "" means it was explicitly disabled
                     printpath = repopath
                     printpath = "y[" + printpath.replace("/", "]/y[") + "]"
-                    message = f" y[*] Removing {printpath} due to branch-group"
                     if module.name in self.explicit_kdeproject_selectors:
-                        logger_modres.warning(message)
+                        logger_modres.warning(f" y[*] Removing {printpath} due to branch-group")
                     else:
-                        logger_modres.debug(message)
+                        logger_modres.debug(f"Removing {printpath} due to branch-group")
                     continue
 
             filtered_modules.append(module)
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.