summaryrefslogtreecommitdiffstats
path: root/scripts/lib
diff options
context:
space:
mode:
authorTom Zanussi <tom.zanussi@linux.intel.com>2013-10-22 09:24:01 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-10-23 07:14:11 +0100
commitf2ca93e61e575586b8a1589602812d11c4a1fc28 (patch)
treec783152c7e25645b8c4e922122ff9b3298b50fea /scripts/lib
parent39c9af56ed1d2ef41cd6d82cfbe81704b9d25d5f (diff)
downloadpoky-f2ca93e61e575586b8a1589602812d11c4a1fc28.tar.gz
wic: Remove rpm and grabber dependencies from BaseImageCreator
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 rpm (From OE-Core rev: a1e24c4a5f5771b7ad35e53ce96c6d82212e4d7e) Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib')
-rw-r--r--scripts/lib/mic/imager/baseimager.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/lib/mic/imager/baseimager.py b/scripts/lib/mic/imager/baseimager.py
index 4d6be29a0e..b7212493b4 100644
--- a/scripts/lib/mic/imager/baseimager.py
+++ b/scripts/lib/mic/imager/baseimager.py
@@ -26,12 +26,10 @@ import re
26import tarfile 26import tarfile
27import glob 27import glob
28 28
29import rpm
30
31from mic import kickstart 29from mic import kickstart
32from mic import msger 30from mic import msger
33from mic.utils.errors import CreatorError, Abort 31from mic.utils.errors import CreatorError, Abort
34from mic.utils import misc, grabber, runner, fs_related as fs 32from mic.utils import misc, runner, fs_related as fs
35 33
36class BaseImageCreator(object): 34class BaseImageCreator(object):
37 """Installs a system to a chroot directory. 35 """Installs a system to a chroot directory.