add vcs field to recording_pkgs for 'release' option
authorGui Chen <gui.chen@intel.com>
Thu, 21 Feb 2013 03:52:52 +0000 (11:52 +0800)
committerGui Chen <gui.chen@intel.com>
Thu, 21 Feb 2013 03:54:06 +0000 (11:54 +0800)
now 'release' option will add vcs field by default

Change-Id: I66402c1e65097dd2b336179c967209681db1ae7c
Signed-off-by: Gui Chen <gui.chen@intel.com>
plugins/imager/fs_plugin.py
plugins/imager/livecd_plugin.py
plugins/imager/liveusb_plugin.py
plugins/imager/loop_plugin.py
plugins/imager/raw_plugin.py

index 6801def..8a5a548 100644 (file)
@@ -60,6 +60,8 @@ class FsPlugin(ImagerPlugin):
         if creatoropts['release'] is not None:
             if 'name' not in recording_pkgs:
                 recording_pkgs.append('name')
+            if 'vcs' not in recording_pkgs:
+                recording_pkgs.append('vcs')
 
         configmgr._ksconf = ksconf
 
index 5782e13..93479e2 100644 (file)
@@ -60,6 +60,8 @@ class LiveCDPlugin(ImagerPlugin):
         if creatoropts['release'] is not None:
             if 'name' not in recording_pkgs:
                 recording_pkgs.append('name')
+            if 'vcs' not in recording_pkgs:
+                recording_pkgs.append('vcs')
 
         configmgr._ksconf = ksconf
 
index 73afa47..f239a1a 100644 (file)
@@ -62,6 +62,8 @@ class LiveUSBPlugin(ImagerPlugin):
         if creatoropts['release'] is not None:
             if 'name' not in recording_pkgs:
                 recording_pkgs.append('name')
+            if 'vcs' not in recording_pkgs:
+                recording_pkgs.append('vcs')
 
         configmgr._ksconf = ksconf
 
index 536c618..8f4b030 100644 (file)
@@ -65,6 +65,8 @@ class LoopPlugin(ImagerPlugin):
         if creatoropts['release'] is not None:
             if 'name' not in recording_pkgs:
                 recording_pkgs.append('name')
+            if 'vcs' not in recording_pkgs:
+                recording_pkgs.append('vcs')
 
         configmgr._ksconf = ksconf
 
index dae43ee..1b9631d 100644 (file)
@@ -71,6 +71,8 @@ class RawPlugin(ImagerPlugin):
         if creatoropts['release'] is not None:
             if 'name' not in recording_pkgs:
                 recording_pkgs.append('name')
+            if 'vcs' not in recording_pkgs:
+                recording_pkgs.append('vcs')
 
         configmgr._ksconf = ksconf