diff options
author | Tom Zanussi <tom.zanussi@linux.intel.com> | 2014-08-04 14:27:52 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-08-11 10:52:16 +0100 |
commit | b818e5a1ed047940fda533da73fc50a099e1aa3f (patch) | |
tree | 2cdeb4546ec81e084c416467c781ac4f27d9356a /scripts/lib/mic/pluginbase.py | |
parent | d3a490d5421405bf9e002c6c65ffb831ea6b767e (diff) | |
download | openembedded-core-b818e5a1ed047940fda533da73fc50a099e1aa3f.tar.gz openembedded-core-b818e5a1ed047940fda533da73fc50a099e1aa3f.tar.bz2 openembedded-core-b818e5a1ed047940fda533da73fc50a099e1aa3f.zip |
wic: Remove unused plugin and error code
wic doesn't use it, so remove it.
Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Diffstat (limited to 'scripts/lib/mic/pluginbase.py')
-rw-r--r-- | scripts/lib/mic/pluginbase.py | 45 |
1 files changed, 2 insertions, 43 deletions
diff --git a/scripts/lib/mic/pluginbase.py b/scripts/lib/mic/pluginbase.py index 9cf4c628d1..46a4f4a6b6 100644 --- a/scripts/lib/mic/pluginbase.py +++ b/scripts/lib/mic/pluginbase.py @@ -40,45 +40,10 @@ class _Plugin(object): def get_plugins(cls): return cls.plugins + class ImagerPlugin(_Plugin): mic_plugin_type = "imager" - @classmethod - def check_image_exists(self, destdir, apacking=None, - images=(), - release=None): - - # if it's a packing file, reset images - if apacking: - images = [apacking] - - # release option will override images - if release is not None: - images = [os.path.basename(destdir.rstrip('/'))] - destdir = os.path.dirname(destdir.rstrip('/')) - - for name in images: - if not name: - continue - - image = os.path.join(destdir, name) - if not os.path.exists(image): - continue - - if msger.ask("Target image/dir: %s already exists, " - "clean up and continue?" % image): - if os.path.isdir(image): - shutil.rmtree(image) - else: - os.unlink(image) - else: - raise errors.Abort("Cancled") - - def do_create(self): - pass - - def do_chroot(self): - pass class SourcePlugin(_Plugin): mic_plugin_type = "source" @@ -133,12 +98,6 @@ class SourcePlugin(_Plugin): """ msger.debug("SourcePlugin: do_prepare_partition: part: %s" % part) -class BackendPlugin(_Plugin): - mic_plugin_type="backend" - - def addRepository(self): - pass - def get_plugins(typen): ps = ImagerPlugin.get_plugins() if typen in ps: @@ -146,4 +105,4 @@ def get_plugins(typen): else: return None -__all__ = ['ImagerPlugin', 'BackendPlugin', 'SourcePlugin', 'get_plugins'] +__all__ = ['ImagerPlugin', 'SourcePlugin', 'get_plugins'] |