summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGui Chen <gui.chen@intel.com>2013-01-27 10:55:12 +0800
committerGui Chen <gui.chen@intel.com>2013-01-27 10:55:12 +0800
commit75a9048737cb87d351f09c621ad9070f3b97112f (patch)
tree0b1a73c96e34c66de488a93962a17b169bb6cd7d /plugins
parent5f0afce47d9af8c6ecb00b5c023f0f85041da9b4 (diff)
downloadmic-75a9048737cb87d351f09c621ad9070f3b97112f.tar.gz
mic-75a9048737cb87d351f09c621ad9070f3b97112f.tar.bz2
mic-75a9048737cb87d351f09c621ad9070f3b97112f.zip
give hints when overwriting loop images
Change-Id: Ia5f3fc69571a34445d8e879227953d3aa5a112af Signed-off-by: Gui Chen <gui.chen@intel.com>
Diffstat (limited to 'plugins')
-rw-r--r--plugins/imager/loop_plugin.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/imager/loop_plugin.py b/plugins/imager/loop_plugin.py
index 8872206..536c618 100644
--- a/plugins/imager/loop_plugin.py
+++ b/plugins/imager/loop_plugin.py
@@ -102,9 +102,11 @@ class LoopPlugin(ImagerPlugin):
if len(recording_pkgs) > 0:
creator._recording_pkgs = recording_pkgs
+ image_names = [creator.name + ".img"]
+ image_names.extend(creator.get_image_names())
self.check_image_exists(creator.destdir,
creator.pack_to,
- [creator.name + ".img"],
+ image_names,
creatoropts['release'])
try: