File tree Expand file tree Collapse file tree 1 file changed +19
-15
lines changed Expand file tree Collapse file tree 1 file changed +19
-15
lines changed Original file line number Diff line number Diff line change @@ -283,6 +283,24 @@ def visit_repo(repo_file):
283
283
def update_mbed ():
284
284
update_repo ("mbed" , join (BUILD_DIR , "mbed" ))
285
285
286
+ def do_sync (options ):
287
+ global push_remote , quiet , commit_msg
288
+
289
+ push_remote = not options .nopush
290
+ quiet = options .quiet
291
+ commit_msg = options .msg
292
+
293
+ if options .code :
294
+ update_code (OFFICIAL_CODE )
295
+
296
+ if options .dependencies :
297
+ update_dependencies (CODE_WITH_DEPENDENCIES )
298
+
299
+ if options .mbed :
300
+ update_mbed ()
301
+
302
+ if changed :
303
+ print "Repositories with changes:" , changed
286
304
287
305
if __name__ == '__main__' :
288
306
parser = OptionParser ()
@@ -312,19 +330,5 @@ def update_mbed():
312
330
313
331
(options , args ) = parser .parse_args ()
314
332
315
- push_remote = not options .nopush
316
- quiet = options .quiet
317
- commit_msg = options .msg
318
-
319
- if options .code :
320
- update_code (OFFICIAL_CODE )
321
-
322
- if options .dependencies :
323
- update_dependencies (CODE_WITH_DEPENDENCIES )
324
-
325
- if options .mbed :
326
- update_mbed ()
327
-
328
- if changed :
329
- print "Repositories with changes:" , changed
333
+ do_sync (options )
330
334
You can’t perform that action at this time.
0 commit comments