patch_cmd = "python %s -p1 -- < %s" % (patch_exe, patch)
logger.write((" >%s\n" % patch_cmd),5)
+
+ logger.logTxtFile.write("\n >%s\n" % patch_cmd)
+ logger.logTxtFile.flush()
res_cmd = (subprocess.call(patch_cmd,
shell=True,
cwd=product_info.source_dir,
logger.write(command + "\n", 5)
+ logger.logTxtFile.write("\n" + command + "\n")
+ logger.logTxtFile.flush()
res = subprocess.call(command, cwd=str(where.dir()), shell=True,
stdout=logger.logTxtFile, stderr=subprocess.STDOUT)
return (res == 0)
{ 'root': server, 'base': base, 'where': str(where.base()),
'tag': opttag, 'product': product, 'command': cmd }
- logger.logTxtFile.write(command + "\n")
logger.write(command + "\n", 5)
if not where.dir().exists():
where.dir().make()
-
+
+ logger.logTxtFile.write("\n" + command + "\n")
+ logger.logTxtFile.flush()
res = subprocess.call(command, cwd=str(where.dir()), shell=True,
stdout=logger.logTxtFile, stderr=subprocess.STDOUT)
return (res == 0)
logger.logTxtFile.write(command + "\n")
logger.write(command + "\n", 5)
+ logger.logTxtFile.write("\n" + command + "\n")
+ logger.logTxtFile.flush()
res = subprocess.call(command, cwd=str(where.dir()), shell=True,
stdout=logger.logTxtFile, stderr=subprocess.STDOUT)
return (res == 0)
\ No newline at end of file