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 6801def600d3c6d04456cd980b088133dd3aceca..8a5a548f10a3677355085229db0e376b6664cd88 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 5782e13decc16a421525928ea5394056ab922dec..93479e213e81bf0ca746c8fde18ad71a02b661b3 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 73afa477bd3e68d63151274617ea012d9236e59b..f239a1a1785dde3a07bb4a31c87f143abe969112 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 536c61847742e6572663fbf44e0692702da7840a..8f4b030f6b81540860f05c678d555d3d2db4f770 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 dae43eef8e95de0c81c2eec8d7ab481c717c60ce..1b9631dfa2b0cc3c37b1f6315aea37a60f62c5c8 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