mrmp/repository.py
2023-01-28 21:19:16 +01:00

18 lines
466 B
Python

import os
import architecture
import arguments
class Repository:
def __init__(self, location):
self.location = location
self.architectures = [architecture.ARCHITECTURES[a]
for a in arguments.architectures]
def __str__(self):
lines = [
f' Location: {self.location}',
f'Architectures: {[a.name for a in self.architectures]}',
]
return os.linesep.join(lines)