Refine the outdir for release
authorGui Chen <gui.chen@intel.com>
Wed, 19 Oct 2011 09:55:01 +0000 (17:55 +0800)
committerGui Chen <gui.chen@intel.com>
Wed, 19 Oct 2011 09:55:01 +0000 (17:55 +0800)
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 45f9960..987220b 100644 (file)
@@ -55,7 +55,7 @@ class FsPlugin(ImagerPlugin):
                 recording_pkgs.append('name')
             ksconf = misc.save_ksconf_file(ksconf, createopts['release'])
             name = os.path.splitext(os.path.basename(ksconf))[0]
-            createopts['outdir'] = "%s/%s-%s/" % (createopts['outdir'], name, createopts['release'])
+            createopts['outdir'] = "%s/%s/images/%s/" % (createopts['outdir'], createopts['release'], name)
         cfgmgr._ksconf = ksconf
 
         # try to find the pkgmgr
index 5e8682e..f702d1b 100644 (file)
@@ -60,7 +60,7 @@ class LiveCDPlugin(ImagerPlugin):
                 recording_pkgs.append('name')
             ksconf = misc.save_ksconf_file(ksconf, creatoropts['release'])
             name = os.path.splitext(os.path.basename(ksconf))[0]
-            creatoropts['outdir'] = "%s/%s-%s/" % (creatoropts['outdir'], name, creatoropts['release'])
+            createopts['outdir'] = "%s/%s/images/%s/" % (createopts['outdir'], createopts['release'], name)
         cfgmgr._ksconf = ksconf
 
         # try to find the pkgmgr
index 02ad769..c620fa8 100644 (file)
@@ -62,7 +62,7 @@ class LiveUSBPlugin(ImagerPlugin):
                 recording_pkgs.append('name')
             ksconf = misc.save_ksconf_file(ksconf, creatoropts['release'])
             name = os.path.splitext(os.path.basename(ksconf))[0]
-            creatoropts['outdir'] = "%s/%s-%s/" % (creatoropts['outdir'], name, creatoropts['release'])
+            createopts['outdir'] = "%s/%s/images/%s/" % (createopts['outdir'], createopts['release'], name)
         cfgmgr._ksconf = ksconf
 
         # try to find the pkgmgr
index 991f439..fbc90bf 100644 (file)
@@ -57,7 +57,7 @@ class LoopPlugin(ImagerPlugin):
                 recording_pkgs.append('name')
             ksconf = misc.save_ksconf_file(ksconf, creatoropts['release'])
             name = os.path.splitext(os.path.basename(ksconf))[0]
-            creatoropts['outdir'] = "%s/%s-%s/" % (creatoropts['outdir'], name, creatoropts['release'])
+            createopts['outdir'] = "%s/%s/images/%s/" % (createopts['outdir'], createopts['release'], name)
         cfgmgr._ksconf = ksconf
 
         # try to find the pkgmgr
index 5ae1a9a..d543b14 100644 (file)
@@ -59,7 +59,7 @@ class RawPlugin(ImagerPlugin):
                 recording_pkgs.append('name')
             ksconf = misc.save_ksconf_file(ksconf, creatoropts['release'])
             name = os.path.splitext(os.path.basename(ksconf))[0]
-            creatoropts['outdir'] = "%s/%s-%s/" % (creatoropts['outdir'], name, creatoropts['release'])
+            createopts['outdir'] = "%s/%s/images/%s/" % (createopts['outdir'], createopts['release'], name)
         cfgmgr._ksconf = ksconf
 
         # try to find the pkgmgr