Skip to content

Commit

Permalink
Merge pull request #35 from gardenlinux/fix/parse_features
Browse files Browse the repository at this point in the history
fix: parse_features
  • Loading branch information
nkraetzschmar authored Sep 26, 2023
2 parents 8ce0006 + bf58b8f commit 002a2ff
Showing 1 changed file with 4 additions and 2 deletions.
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

0 comments on commit 002a2ff

Please sign in to comment.