1
0
mirror of https://github.com/AR2000AR/openComputers_codes.git synced 2025-09-08 06:31:14 +02:00

[pm/tools] potential fix with comment stripping

This commit is contained in:
2023-07-11 16:59:13 +02:00
parent 4563a1009d
commit c119ff9d05

View File

@@ -97,7 +97,7 @@ def makePackage(packageInfo, source=None, outputDirectory='./packages/'):
if any(item in ['-s','--strip-comments'] for item,v in opts):
for luaFile in glob(root_dir=tmpDir+"/DATA/",pathname="**/*.lua",recursive=True):
os.system(f'sed -i s/--.*// {tmpDir+"/DATA/"+luaFile}')
os.system(f'sed -i s/^--.*// {tmpDir+"/DATA/"+luaFile}')
version = manifest["version"]
# manifest["archiveName"] = f"{packageName}_({version}).tar"