mirror of
https://github.com/karma-riuk/crab.git
synced 2025-07-05 05:28:13 +02:00
renamed column
This commit is contained in:
@ -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,
|
||||||
|
Reference in New Issue
Block a user