diff options
author | Tom Zanussi <tom.zanussi@linux.intel.com> | 2013-10-22 09:24:01 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-12-12 17:00:00 +0000 |
commit | 72db8ccf907c0d58707c9babdf008c3a61532a36 (patch) | |
tree | 39f0a7f609edf565f6ff5294706b16f2730d6484 /scripts | |
parent | 8d158a7ecff00f8292c02e5fd12aea2d02420f4e (diff) | |
download | poky-72db8ccf907c0d58707c9babdf008c3a61532a36.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 master rev: a1e24c4a5f5771b7ad35e53ce96c6d82212e4d7e)
(From OE-Core rev: f5587ec7e7f925b321b9bfe6923be0879dadb2aa)
Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/lib/mic/imager/baseimager.py | 4 |
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 | |||
26 | import tarfile | 26 | import tarfile |
27 | import glob | 27 | import glob |
28 | 28 | ||
29 | import rpm | ||
30 | |||
31 | from mic import kickstart | 29 | from mic import kickstart |
32 | from mic import msger | 30 | from mic import msger |
33 | from mic.utils.errors import CreatorError, Abort | 31 | from mic.utils.errors import CreatorError, Abort |
34 | from mic.utils import misc, grabber, runner, fs_related as fs | 32 | from mic.utils import misc, runner, fs_related as fs |
35 | 33 | ||
36 | class BaseImageCreator(object): | 34 | class BaseImageCreator(object): |
37 | """Installs a system to a chroot directory. | 35 | """Installs a system to a chroot directory. |