@@ -285,6 +285,7 @@ def update_bundle(bundle_path):
285
285
status = StringIO ()
286
286
git .status ("--short" , _out = status )
287
287
updates = []
288
+ release_required = False
288
289
status = status .getvalue ().strip ()
289
290
if status :
290
291
for status_line in status .split ("\n " ):
@@ -305,6 +306,7 @@ def update_bundle(bundle_path):
305
306
url = repo_remote_url (directory )
306
307
summary = "\n " .join (diff_lines [1 :- 1 ])
307
308
updates .append ((url [:- 4 ], old_commit , new_commit , summary ))
309
+ release_required = True
308
310
os .chdir (working_directory )
309
311
lib_list_updates = check_lib_links_md (bundle_path )
310
312
if lib_list_updates :
@@ -321,6 +323,7 @@ def update_bundle(bundle_path):
321
323
),
322
324
)
323
325
)
326
+ release_required = True
324
327
if update_download_stats (bundle_path ):
325
328
updates .append (
326
329
(
@@ -334,7 +337,7 @@ def update_bundle(bundle_path):
334
337
)
335
338
)
336
339
337
- return updates
340
+ return updates , release_required
338
341
339
342
340
343
def commit_updates (bundle_path , update_info ):
@@ -546,9 +549,9 @@ def new_release(bundle, bundle_path):
546
549
bundle_dir = os .path .join (bundles_dir , cp_bundle )
547
550
try :
548
551
fetch_bundle (cp_bundle , bundle_dir )
549
- updates_needed = update_bundle (bundle_dir )
550
- if updates_needed :
551
- commit_updates (bundle_dir , updates_needed )
552
+ updates , release_required = update_bundle (bundle_dir )
553
+ if release_required :
554
+ commit_updates (bundle_dir , updates )
552
555
push_updates (bundle_dir )
553
556
new_release (cp_bundle , bundle_dir )
554
557
except RuntimeError as e :
0 commit comments