parent
7ff0568d6f
commit
50faf5fe22
|
@ -96,8 +96,11 @@ def apkbuild(args, path):
|
||||||
if path in args.cache["apkbuild"]:
|
if path in args.cache["apkbuild"]:
|
||||||
return args.cache["apkbuild"][path]
|
return args.cache["apkbuild"][path]
|
||||||
|
|
||||||
|
# Read the file and check line endings
|
||||||
with open(path, encoding="utf-8") as handle:
|
with open(path, encoding="utf-8") as handle:
|
||||||
lines = handle.readlines()
|
lines = handle.readlines()
|
||||||
|
if handle.newlines != '\n':
|
||||||
|
raise RuntimeError("Wrong line endings in APKBUILD: " + path)
|
||||||
|
|
||||||
# Parse all attributes from the config
|
# Parse all attributes from the config
|
||||||
ret = {}
|
ret = {}
|
||||||
|
|
Loading…
Reference in New Issue