summaryrefslogtreecommitdiffstats
path: root/src/lib/Client
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Client')
-rw-r--r--src/lib/Client/Toolset.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/Client/Toolset.py b/src/lib/Client/Toolset.py
index 922b06f96..804756e2b 100644
--- a/src/lib/Client/Toolset.py
+++ b/src/lib/Client/Toolset.py
@@ -168,9 +168,10 @@ class Toolset(object):
mod = SubElement(stats, "Modified")
for elm in self.modified:
SubElement(mod, elm.tag, name=elm.get('name'))
- extra = SubElement(stats, "Extra")
- [SubElement(extra, "Service", name=svc) for svc in self.extra_services]
- [SubElement(extra, "Package", name=pkg) for pkg in self.pkgwork['remove']]
+ if self.extra_services + self.pkgwork['remove']:
+ extra = SubElement(stats, "Extra")
+ [SubElement(extra, "Service", name=svc) for svc in self.extra_services]
+ [SubElement(extra, "Package", name=pkg) for pkg in self.pkgwork['remove']]
return stats
# the next two are dispatch functions