Skip to content

Commit a9c34b5

Browse files
author
Cynthia Jiang
committed
clean up the fix
1 parent a735ebe commit a9c34b5

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

build_package.py

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def main(argv):
169169
p = subprocess.Popen(cmd_args, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
170170
output, error = p.communicate()
171171
if p.returncode != 0:
172-
logging.info("Generate new Guids")
172+
logging.info("Generating new guids.")
173173
error_str = str(error)
174174
error_str = error_str.split("assets:")[-1]
175175
error_str = error_str.rstrip("\\n\'")
@@ -188,16 +188,13 @@ def main(argv):
188188
print(file)
189189
gen_cmd_args.append(file)
190190
subprocess.call(gen_cmd_args)
191-
else:
192-
#error_list = str(error).split("\\n")
193-
logging.info("No need to generate new Guids")
194-
195-
# Package with new guids
196-
logging.info("Start Package")
197-
if os.path.exists(output_folder):
198-
shutil.rmtree(output_folder)
199-
subprocess.call(cmd_args)
200191

192+
# Need to package again if has that error
193+
subprocess.call(cmd_args)
194+
else:
195+
logging.info("No new guid generated.")
196+
error_list = str(error).split("\\n")
197+
logging.info("\n".join(error_list))
201198
logging.info("Packaging done for version %s", last_version)
202199

203200
if __name__ == '__main__':

0 commit comments

Comments
 (0)