Browse code

Adding absolute path for finding filesystem rpm

dthaluru authored on 2015/08/18 10:26:49
Showing 1 changed files
... ...
@@ -49,7 +49,7 @@ class ToolChainUtils(object):
49 49
             cmd=self.rpmbuildCommand+" -ba --nocheck --define \'_topdir "+chrootID+constants.topDirPath+"\' --define \'_dbpath "+chrootID+"/var/lib/rpm\' --define \'dist "+constants.dist+"\' "+specFile
50 50
             self.logger.info(cmd)
51 51
             cmdUtils.runCommandInShell(cmd,self.logPath+"/filesystem.log")
52
-            filesystemrpmFile = cmdUtils.findFile(package+"-*.rpm", chrootID)
52
+            filesystemrpmFile = cmdUtils.findFile(package+"-*.rpm", chrootID+constants.topDirPath+"/RPMS")
53 53
             if len(filesystemrpmFile) > 0:
54 54
                 shutil.copy2(filesystemrpmFile[0],constants.rpmPath+"/x86_64/")
55 55
             rpmFile=pkgUtils.findRPMFileForGivenPackage(package)