[sdk/kde-builder] kde_builder_lib/module: fix: Keep self.mod_total when installing in build phase
Andrew Shark <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit aebc683c9c3da6029bab56d4315223686f6795eb by Andrew Shark.
Committed on 24/07/2026 at 21:11.
Pushed by ashark into branch 'master'.
fix: Keep self.mod_total when installing in build phase
M +7 -1 kde_builder_lib/module/module.py
https://invent.kde.org/sdk/kde-builder/-/commit/aebc683c9c3da6029bab56d4315223686f6795eb
diff --git a/kde_builder_lib/module/module.py b/kde_builder_lib/module/module.py
index e827c685..f1df6690 100644
--- a/kde_builder_lib/module/module.py
+++ b/kde_builder_lib/module/module.py
@@ -259,7 +259,13 @@ class Module(OptionsBase):
logger_module.info("\tSkipping install due to disabled install phase.")
return True
- self.context.status_view.__init__() # Clear the progress values after build process, so they do not influence on initial progress of install process. This is needed because currently the install() is invoked from build().
+ # Clear the progress values after build process, so they do not influence on initial progress of install process.
+ # This is needed because currently the install() is invoked from build().
+ sv = self.context.status_view
+ sv.cur_progress = -1
+ sv.progress_total = -1
+ sv.status = ""
+
# TODO: this should be a phase to run.
return self.install()