mirror of
https://github.com/brain-hackers/brain-config.git
synced 2024-11-05 17:58:04 +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')
|