summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGui Chen <gui.chen@intel.com>2012-08-21 23:31:01 +0800
committerGui Chen <gui.chen@intel.com>2012-08-21 23:33:05 +0800
commitfe7437e1872475aae4fbfe4f84ddcaec5d0dcc92 (patch)
tree84ccc57a7da955dd5ef213e9cede8599f8324d22 /plugins
parentbf16f628f25d987df8484d440e41fadbcfdb5d8a (diff)
downloadmic-fe7437e1872475aae4fbfe4f84ddcaec5d0dcc92.tar.gz
mic-fe7437e1872475aae4fbfe4f84ddcaec5d0dcc92.tar.bz2
mic-fe7437e1872475aae4fbfe4f84ddcaec5d0dcc92.zip
auto selecting backend with 'pkgmgr=auto'
Signed-off-by: Gui Chen <gui.chen@intel.com>
Diffstat (limited to 'plugins')
-rw-r--r--plugins/imager/fs_plugin.py5
-rw-r--r--plugins/imager/livecd_plugin.py5
-rw-r--r--plugins/imager/liveusb_plugin.py5
-rw-r--r--plugins/imager/loop_plugin.py5
-rw-r--r--plugins/imager/raw_plugin.py5
5 files changed, 20 insertions, 5 deletions
diff --git a/plugins/imager/fs_plugin.py b/plugins/imager/fs_plugin.py
index 03b3b1b..d972fe5 100644
--- a/plugins/imager/fs_plugin.py
+++ b/plugins/imager/fs_plugin.py
@@ -67,7 +67,10 @@ class FsPlugin(ImagerPlugin):
# try to find the pkgmgr
pkgmgr = None
for (key, pcls) in pluginmgr.get_plugins('backend').iteritems():
- if key == creatoropts['pkgmgr']:
+ if 'auto' == creatoropts['pkgmgr']:
+ pkgmgr = pcls
+ break
+ elif key == creatoropts['pkgmgr']:
pkgmgr = pcls
break
diff --git a/plugins/imager/livecd_plugin.py b/plugins/imager/livecd_plugin.py
index 680217e..424404f 100644
--- a/plugins/imager/livecd_plugin.py
+++ b/plugins/imager/livecd_plugin.py
@@ -67,7 +67,10 @@ class LiveCDPlugin(ImagerPlugin):
# try to find the pkgmgr
pkgmgr = None
for (key, pcls) in pluginmgr.get_plugins('backend').iteritems():
- if key == creatoropts['pkgmgr']:
+ if 'auto' == creatoropts['pkgmgr']:
+ pkgmgr = pcls
+ break
+ elif key == creatoropts['pkgmgr']:
pkgmgr = pcls
break
diff --git a/plugins/imager/liveusb_plugin.py b/plugins/imager/liveusb_plugin.py
index 4b357e4..01afcbb 100644
--- a/plugins/imager/liveusb_plugin.py
+++ b/plugins/imager/liveusb_plugin.py
@@ -69,7 +69,10 @@ class LiveUSBPlugin(ImagerPlugin):
# try to find the pkgmgr
pkgmgr = None
for (key, pcls) in pluginmgr.get_plugins('backend').iteritems():
- if key == creatoropts['pkgmgr']:
+ if 'auto' == creatoropts['pkgmgr']:
+ pkgmgr = pcls
+ break
+ elif key == creatoropts['pkgmgr']:
pkgmgr = pcls
break
diff --git a/plugins/imager/loop_plugin.py b/plugins/imager/loop_plugin.py
index 28171b7..6c22b82 100644
--- a/plugins/imager/loop_plugin.py
+++ b/plugins/imager/loop_plugin.py
@@ -74,7 +74,10 @@ class LoopPlugin(ImagerPlugin):
# try to find the pkgmgr
pkgmgr = None
for (key, pcls) in pluginmgr.get_plugins('backend').iteritems():
- if key == creatoropts['pkgmgr']:
+ if 'auto' == creatoropts['pkgmgr']:
+ pkgmgr = pcls
+ break
+ elif key == creatoropts['pkgmgr']:
pkgmgr = pcls
break
diff --git a/plugins/imager/raw_plugin.py b/plugins/imager/raw_plugin.py
index e536443..8f31c03 100644
--- a/plugins/imager/raw_plugin.py
+++ b/plugins/imager/raw_plugin.py
@@ -72,7 +72,10 @@ class RawPlugin(ImagerPlugin):
# try to find the pkgmgr
pkgmgr = None
for (key, pcls) in pluginmgr.get_plugins('backend').iteritems():
- if key == creatoropts['pkgmgr']:
+ if 'auto' == creatoropts['pkgmgr']:
+ pkgmgr = pcls
+ break
+ elif key == creatoropts['pkgmgr']:
pkgmgr = pcls
break