Commit 5d7eafca authored by Boris Baldassari's avatar Boris Baldassari
Browse files

Fix various minor debug flags and typos.

parent 5ef41867
......@@ -82,6 +82,7 @@ for package in packages:
print(f"\nFound {len(licenses)} curations.")
# Now update the yaml curations file
curations_in = []
......@@ -102,11 +103,8 @@ for pkg in licenses:
'concluded_license': f'{licenses[pkg]}'
}
curations_in.append(new)
print(curations_in)
print(f"Write curations to {file_out}.")
with open(file_out, 'w') as f:
yaml.dump(curations_in, f, sort_keys=False) #, default_flow_style=False)
......
......@@ -201,8 +201,6 @@ def publish_project(name: str, dir_pub: str, project: List[Any]):
content = [header]
#content.append('\n\n{{< alert "Message" "info" >}}\n\n')
# print(f"DBG in publish_project {name}")
content.append("## Project Summary\n\n")
content.append(f"* Project ID: `{name}`\n")
content.append(f"* Project PMI: https://projects.eclipse.org/projects/{name}\n")
......@@ -210,7 +208,6 @@ def publish_project(name: str, dir_pub: str, project: List[Any]):
content.append("\n\n")
for repo in project:
# print(f"DBG in publish_project repo {repo}")
last_run = project[repo][-1]
date = last_run["time"].isoformat()
last_run_date = last_run["time"].isoformat()
......@@ -367,12 +364,12 @@ for dir in tree:
# }
run["time"] = datetime.strptime(time, "%Y%m%d%H%M")
run["files"] = tree[dir_run]["files"]
if "analyzer-result.json" in run["files"]:
run["status"] = "Interrupted: analyzer"
log = os.path.join(dir_run, "analyzer-result.json")
run["analyzer"] = analyze_run_analyzer(log)
if "scan-result.json" in run["files"]:
run["status"] = "Interrupted: scanner"
# if "analyzer-result.json" in run["files"]:
# run["status"] = "Interrupted: analyzer"
# log = os.path.join(dir_run, "analyzer-result.json")
# run["analyzer"] = analyze_run_analyzer(log)
# if "scan-result.json" in run["files"]:
# run["status"] = "Interrupted: scanner"
if "evaluation-result.json" in run["files"]:
run["status"] = "Interrupted: evaluator"
log = os.path.join(dir_run, "evaluation-result.json")
......@@ -390,7 +387,6 @@ for dir in tree:
########################
if dir_output:
print(f"DBG in main::dir_output is {dir_output}")
publish_analysis(dir_pub=dir_output, projects=projects)
print("# Writing violations.csv file.")
......@@ -449,7 +445,5 @@ for rule in errors.keys():
with open(file_out,'w') as f:
f.write('\n'.join(content))
#pp = pprint.PrettyPrinter(indent=4)
#pp.pprint(projects)
print("# Extraction finished.")
......@@ -40,3 +40,4 @@ if [[ -L ${DIR_WWW}/files ]]; then
rm ${DIR_WWW}/files
fi
ln -s $DIR_RESULTS ${DIR_WWW}/files
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment