Adds 2 new events dispatched via the manager for pre and post image unpack
Also tries to fix the circular dependencies that arise from importing the bus package into anything under the helper module:
Just by adding an import for bus to anything in the helper dir, we would
run into a circular dependency due to how things are structured. That
means that we cannot set any events for unpacking or docker helper
pulling an image.
This commit tries to work around this by doing several things.
Remove full imports of the helper module by segmentating some modules
into their own submodule, like docker or match so just using a small match
function doesnt bring the whole module
Removing a simple function to check if a dir exists from importing
the full helper module and instead write the function (5 lines)
Using logrus in the bus module instead of logger, which avoids a
circular dependency
Adds 2 new events dispatched via the manager for pre and post image unpack
Also tries to fix the circular dependencies that arise from importing the bus package into anything under the helper module:
Just by adding an import for bus to anything in the helper dir, we would run into a circular dependency due to how things are structured. That means that we cannot set any events for unpacking or docker helper pulling an image.
This commit tries to work around this by doing several things.
Signed-off-by: Itxaka igarcia@suse.com