Browse code

Fixed default parameters required for YAML file generation

Change-Id: I09f62fd08dda7c9c93eebe8b9ec267ce8abe689f
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/1511
Reviewed-by: aditij <aditij@vmware.com>
Tested-by: gerrit-photon <photon-checkins@vmware.com>
(cherry picked from commit 9df1f97e32d387d225f18e7106e3794fa6850de1)
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/1516
Reviewed-by: suezzelur <anishs@vmware.com>

dthaluru authored on 2016/10/13 04:13:55
Showing 1 changed files
... ...
@@ -181,7 +181,7 @@ def buildPackagesList(specPath, csvFilename):
181 181
                     csvFile.write(name+","+version+","+license+","+url+","+sources+","+patches+"\n")
182 182
     csvFile.close()
183 183
 
184
-def buildSourcesList(specPath,sourcePath, yamlDir, logger, singleFile=False):
184
+def buildSourcesList(specPath,sourcePath, yamlDir, logger, singleFile=True):
185 185
     strUtils = StringUtils()
186 186
     if singleFile:
187 187
         yamlFile = open(yamlDir+"sources_list.yaml", "w")
... ...
@@ -233,7 +233,7 @@ def buildSourcesList(specPath,sourcePath, yamlDir, logger, singleFile=False):
233 233
         yamlFile.close()
234 234
     logger.info("Generated source yaml files for all packages")
235 235
 
236
-def buildSRPMList(specPath,srpmPath, yamlDir, logger, singleFile=False):
236
+def buildSRPMList(specPath,srpmPath, yamlDir, logger, singleFile=True):
237 237
     strUtils = StringUtils()
238 238
     if singleFile:
239 239
         yamlFile = open(yamlDir+"srpm_list.yaml", "w")
... ...
@@ -269,7 +269,7 @@ def buildSRPMList(specPath,srpmPath, yamlDir, logger, singleFile=False):
269 269
                     yamlFile.write("  version: '"+ossversion+"-"+ossrelease+"'\n")
270 270
                     yamlFile.write("  baseos-style: rpm\n")
271 271
                     yamlFile.write("  baseos-source: '"+str(srpmName)+"'\n")
272
-                    yamlFile.write("  baseos-osname: 'Photon OS'\n")
272
+                    yamlFile.write("  baseos-osname: 'photon'\n")
273 273
                     yamlFile.write("\n")
274 274
                     if not singleFile:
275 275
                         yamlFile.close()