Revision fa65eda1 image_creator/os_type/__init__.py
b/image_creator/os_type/__init__.py | ||
---|---|---|
65 | 65 |
def wrapper(func): |
66 | 66 |
func.sysprep = True |
67 | 67 |
func.enabled = enabled |
68 |
func.executed = False |
|
68 | 69 |
return func |
69 | 70 |
return wrapper |
70 | 71 |
|
... | ... | |
94 | 95 |
objs = [getattr(self, name) for name in dir(self) |
95 | 96 |
if not name.startswith('_')] |
96 | 97 |
|
97 |
return [x for x in objs if self._is_sysprep(x)] |
|
98 |
return [x for x in objs if self._is_sysprep(x) and x.executed is False]
|
|
98 | 99 |
|
99 | 100 |
def sysprep_info(self, obj): |
100 | 101 |
assert self._is_sysprep(obj), "Object is not a sysprep" |
... | ... | |
222 | 223 |
cnt += 1 |
223 | 224 |
self.out.output(('(%d/%d)' % (cnt, size)).ljust(7), False) |
224 | 225 |
task() |
226 |
setattr(task.im_func, 'executed', True) |
|
225 | 227 |
self.out.output() |
226 | 228 |
|
227 | 229 |
# vim: set sta sts=4 shiftwidth=4 sw=4 et ai : |
Also available in: Unified diff