self.dependencies does not work properly accross different hooks
Bug #1341304 reported by
Leo Iannacone
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
deb-o-matic |
New
|
Undecided
|
Unassigned |
Bug Description
It could be really useful to check for module dependencies every time a hook it's called.
for instance, I would like to do something like:
MyModule():
__init__():
...
self.
pre_chroot():
// wait for Module1
...
self.
post_chroot():
// wait for Module1 and Module2
...
return
Moreover, to me they are not really "closed" dependencies, in the meaning the if they are enabled -> OK, it's cool... If not, never mind, continue my job.
To post a comment you must log in.
A simple workaround is rename the module adding a prefix "ZZZ_" since modules are loaded using listdir( modules_ dir)