Skip to content

Commit

Permalink
fix unbound variables and add cname_base cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
MrBatschner committed Sep 7, 2023
1 parent bf05417 commit 328ee61
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion builder/parse_features
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ def main():

args_type_allowed = [
"cname",
"cname_base",
"features",
"platforms",
"flags",
Expand All @@ -46,8 +47,11 @@ def main():
else:
input_features = args.features

arch = None
if args.arch:
arch = args.arch

version = None
if args.version:
version = args.version

Expand Down Expand Up @@ -90,7 +94,9 @@ def main():
cname_base = get_cname_base(sorted_minimal_features)
cname = f"{cname_base}-{arch}-{version}"

if args.type == "cname":
if args.type == "cname_base":
print(cname_base)
elif args.type == "cname":
print(cname)
elif args.type == "features":
print(",".join(features))
Expand Down

0 comments on commit 328ee61

Please sign in to comment.