@@ -169,7 +169,7 @@ def main(argv):
169
169
p = subprocess .Popen (cmd_args , stdout = subprocess .PIPE , stderr = subprocess .PIPE )
170
170
output , error = p .communicate ()
171
171
if p .returncode != 0 :
172
- logging .info ("Generate new Guids " )
172
+ logging .info ("Generating new guids. " )
173
173
error_str = str (error )
174
174
error_str = error_str .split ("assets:" )[- 1 ]
175
175
error_str = error_str .rstrip ("\\ n\' " )
@@ -188,16 +188,13 @@ def main(argv):
188
188
print (file )
189
189
gen_cmd_args .append (file )
190
190
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 )
200
191
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 ))
201
198
logging .info ("Packaging done for version %s" , last_version )
202
199
203
200
if __name__ == '__main__' :
0 commit comments