Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: parse_features #35

Merged
merged 1 commit into from
Sep 26, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions builder/parse_features
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ def main():
args = parser.parse_args()

assert bool(args.features) ^ bool(args.cname), "please provide either `--features` or `--cname` argument"

arch = None
version = None

if args.cname:
search = re.search("^([a-z][a-zA-Z0-9_-]*?)(-(amd64|arm64)(-([a-z0-9.]+))?)?$", args.cname)
assert search, f"not a valid cname {args.cname}"
Expand All @@ -47,11 +51,9 @@ 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