renamed column

This commit is contained in:
Karma Riuk
2025-02-28 15:51:18 +01:00
parent 3a49c19d5d
commit 761095e853

View File

@ -20,7 +20,7 @@ def clone(repo: str, dest: str, updates: dict, force: bool = False, verbose: boo
local_repo_path = os.path.join(dest, repo) local_repo_path = os.path.join(dest, repo)
if not force and os.path.exists(local_repo_path): if not force and os.path.exists(local_repo_path):
# if verbose: print(f"Skipping {repo}, already exists") # if verbose: print(f"Skipping {repo}, already exists")
updates["successfully_cloned"] = "Already exists" updates["cloned_successfully"] = "Already exists"
return return
if verbose: print(f"Cloning {repo}") if verbose: print(f"Cloning {repo}")
@ -30,14 +30,14 @@ def clone(repo: str, dest: str, updates: dict, force: bool = False, verbose: boo
stderr=subprocess.PIPE stderr=subprocess.PIPE
) )
if proc.returncode != 0: if proc.returncode != 0:
updates["successfully_cloned"] = False updates["cloned_successfully"] = False
print(f"Failed to clone {repo}", file=sys.stderr) print(f"Failed to clone {repo}", file=sys.stderr)
print(f"Error message was:", file=sys.stderr) print(f"Error message was:", file=sys.stderr)
error_msg = proc.stderr.decode() error_msg = proc.stderr.decode()
print(error_msg, file=sys.stderr) print(error_msg, file=sys.stderr)
updates["error_msg"] = error_msg updates["error_msg"] = error_msg
else: else:
updates["successfully_cloned"] = True updates["cloned_successfully"] = True
def get_build_file(root: str, repo: str, updates: dict, verbose: bool = False): def get_build_file(root: str, repo: str, updates: dict, verbose: bool = False):
""" """
@ -196,7 +196,7 @@ def clone_repos(file: str, dest: str, force: bool =False, verbose: bool = False)
# Create columns for the new data # Create columns for the new data
df = df.assign( df = df.assign(
successfully_cloned=None, cloned_successfully=None,
build_system=None, build_system=None,
depth_of_build_file=None, depth_of_build_file=None,
detected_source_of_tests=None, detected_source_of_tests=None,