|
@@ -126,7 +126,7 @@ def recurse_abe_submodules(parent, **kwargs):
|
|
|
last = None
|
|
last = None
|
|
|
for su in subm:
|
|
for su in subm:
|
|
|
su.parent = parent
|
|
su.parent = parent
|
|
|
- print(f"Repo: \"{parent.fullpath}\" has Submodule: \"{su.fullpath}\" Type: \"{su.subtype}\" From: \"{su.url.geturl()}\"") if DEBUG else None
|
|
|
|
|
|
|
+ print(f"Repo: \"{parent.fullpath}\" has Submodule: \"{su.fullpath}\" Type: \"{su.subtype}\" From: \"{su.url.geturl()}\" Ref: \"{su.ref}\"") if DEBUG else None
|
|
|
acc.append(su)
|
|
acc.append(su)
|
|
|
if last != None:
|
|
if last != None:
|
|
|
last.last = False
|
|
last.last = False
|
|
@@ -173,13 +173,13 @@ class ProgressPrinter(RemoteProgress):
|
|
|
if DEBUG:
|
|
if DEBUG:
|
|
|
cur_count_int = round(cur_count)
|
|
cur_count_int = round(cur_count)
|
|
|
if not max_count:
|
|
if not max_count:
|
|
|
- div = f"{cur_count_int}/?"
|
|
|
|
|
- perc = '??%'
|
|
|
|
|
|
|
+ div = f"{cur_count_int}/"+ ''.join(['?' for _ in range(len(str(cur_count_int)))])
|
|
|
|
|
+ perc = '???'
|
|
|
else:
|
|
else:
|
|
|
max_count_int = round(max_count)
|
|
max_count_int = round(max_count)
|
|
|
div = f"{cur_count_int}/{max_count_int}"
|
|
div = f"{cur_count_int}/{max_count_int}"
|
|
|
- perc = str(round(100*cur_count / (max_count or 100)))+'%'
|
|
|
|
|
- print(f"\033[2K" + div, perc, message, end='\r')
|
|
|
|
|
|
|
+ perc = round(100*cur_count / (max_count or 100))
|
|
|
|
|
+ print(f"\033[2K" + div, f"{perc:>3}%", message, end='\r')
|
|
|
sys.stdout.flush()
|
|
sys.stdout.flush()
|
|
|
|
|
|
|
|
|
|
|