Patchwork [06/10] wic: Remove rpm and grabber dependencies from BaseImageCreator

mail settings
Date Oct. 22, 2013, 2:24 p.m.
Message ID <>
Download mbox | patch
Permalink /patch/60379/
State Accepted
Commit a1e24c4a5f5771b7ad35e53ce96c6d82212e4d7e
Headers show

Comments - Oct. 22, 2013, 2:24 p.m.
BaseImageCreator is a base class for DirectImageCreator and others,
and imports rpm and grabber (which imports rpm).

The various plugins e.g. DirectPlugin import the creators and
therefore these dependencies, which manifest at run-time as e.g.:

  Warning: Failed to load plugin imager/direct_plugin: No module named

Signed-off-by: Tom Zanussi <>
 scripts/lib/mic/imager/ | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)


diff --git a/scripts/lib/mic/imager/ b/scripts/lib/mic/imager/
index 4d6be29..b721249 100644
--- a/scripts/lib/mic/imager/
+++ b/scripts/lib/mic/imager/
@@ -26,12 +26,10 @@  import re
 import tarfile
 import glob
-import rpm
 from mic import kickstart
 from mic import msger
 from mic.utils.errors import CreatorError, Abort
-from mic.utils import misc, grabber, runner, fs_related as fs
+from mic.utils import misc, runner, fs_related as fs
 class BaseImageCreator(object):
     """Installs a system to a chroot directory.