Revision f8cccab5 image_creator/os_type/__init__.py
b/image_creator/os_type/__init__.py | ||
---|---|---|
209 | 209 |
|
210 | 210 |
self.out.output('Preparing system for image creation:') |
211 | 211 |
|
212 |
tasks, _ = self.list_syspreps() |
|
213 |
size = len(tasks) |
|
212 |
tasks = self.list_syspreps() |
|
213 |
enabled = filter(lambda x: x.enabled, tasks) |
|
214 |
|
|
215 |
size = len(enabled) |
|
214 | 216 |
cnt = 0 |
215 |
for task in tasks:
|
|
217 |
for task in enabled:
|
|
216 | 218 |
cnt += 1 |
217 | 219 |
self.out.output(('(%d/%d)' % (cnt, size)).ljust(7), False) |
218 | 220 |
task() |
Also available in: Unified diff