mirror of
https://github.com/brain-hackers/brain-config.git
synced 2024-12-22 12:10:07 +09:00
10 lines
320 B
Python
10 lines
320 B
Python
#!/usr/bin/python3
|
|
|
|
with open('./debian/brain-config/DEBIAN/control', 'r') as f:
|
|
for l in f.readlines():
|
|
if l.startswith('Version:'):
|
|
print(f'brain-config_{l.replace("Version: ", "").rstrip()}_all.deb', end='')
|
|
break
|
|
else:
|
|
raise RuntimeError('Version line was not found')
|