From: "Brian C. Lane" <bcl(a)redhat.com>
This will display 'Executing com_redhat_kdump addon' when the addon's
execute method is called.
---
pyanaconda/addons.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/pyanaconda/addons.py b/pyanaconda/addons.py
index 1f2d01f..b61002e 100644
--- a/pyanaconda/addons.py
+++ b/pyanaconda/addons.py
@@ -25,6 +25,9 @@
import functools
from pykickstart.sections import Section
+from pyanaconda.progress import progress_message
+from pyanaconda.i18n import N_
+
def collect_addon_paths(toplevel_addon_paths, ui_subdir="gui"):
"""This method looks into the directories present
in toplevel_addon_paths and registers each subdirectory
@@ -81,6 +84,7 @@ def execute(self, storage, ksdata, instClass, users):
"""This method calls execute on all the registered
addons."""
for v in self.__dict__.values():
if hasattr(v, "execute"):
+ progress_message(N_("Executing %s addon") % v.name)
v.execute(storage, ksdata, instClass, users)
def setup(self, storage, ksdata, instClass):
--
To view this commit on github, visit
https://github.com/rhinstaller/anaconda/commit/8f5ef7a1aabf6175dda485c97a...