Browse code

Fixed yaml directory path

Change-Id: Ieef6518d58c68b08dbd32fddaa1501f3ced2c796
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/2960
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Divya Thaluru <dthaluru@vmware.com>

dthaluru authored on 2017/06/16 08:22:10
Showing 1 changed files
... ...
@@ -214,7 +214,7 @@ def buildSourcesList(yamlDir, blackListPkgs, logger, singleFile=True):
214 214
             sourceName=listSourceNames[0]
215 215
             sha1 = constants.specData.getSHA1(package, sourceName)
216 216
             if sha1 is not None:
217
-                PullSources.get(sourceName, sha1, yamlDir, constants.pullsourcesConfig, logger)
217
+                PullSources.get(sourceName, sha1, yamlSourceDir, constants.pullsourcesConfig, logger)
218 218
 
219 219
         if not singleFile:
220 220
             yamlFile = open(yamlSourceDir+"/"+ossname+"-"+ossversion+".yaml", "w")
... ...
@@ -257,7 +257,7 @@ def buildSRPMList(srpmPath, yamlDir, blackListPkgs, logger, singleFile=True):
257 257
         if len(listFoundSRPMFiles) == 1:
258 258
             srpmFullPath = listFoundSRPMFiles[0];
259 259
             srpmName = os.path.basename(srpmFullPath)
260
-            cpcmd = "cp "+ srpmFullPath +" "+yamlDir+"/"
260
+            cpcmd = "cp "+ srpmFullPath +" "+yamlSrpmDir+"/"
261 261
             returnVal = cmdUtils.runCommandInShell(cpcmd)
262 262
             if not returnVal:
263 263
                 logger.error("Copy SRPM File is failed for package:"+ossname)