added logging of the number of gradle projects in

progress bar
This commit is contained in:
Karma Riuk
2025-03-01 17:25:06 +01:00
parent 4f5695d8d2
commit 59055df8b4

View File

@ -208,7 +208,7 @@ def clone_repos(file: str, dest: str, force: bool =False, verbose: bool = False)
if verbose: print("Processing repositories") if verbose: print("Processing repositories")
with tqdm(total=len(df)) as pbar: with tqdm(total=len(df)) as pbar:
for i, row in df.iterrows(): for i, row in df.iterrows():
pbar.set_postfix({"repo": row["name"], "good_repos": good_repos}) pbar.set_postfix({"repo": row["name"], "good_repos": good_repos, "n_gradle": sum(updates["build_system"] == "gradle" for _, updates in updates_list if "build_system" in updates)})
updates = {} updates = {}
updates_list.append((i, updates)) # Collect updates updates_list.append((i, updates)) # Collect updates
process_row(row["name"], client, dest, updates, force=force, verbose=verbose) process_row(row["name"], client, dest, updates, force=force, verbose=verbose)