package
This commit is contained in:
parent
3eccd76e8c
commit
2eb71e6412
14 changed files with 0 additions and 0 deletions
21
mrmp/repository.py
Normal file
21
mrmp/repository.py
Normal file
|
@ -0,0 +1,21 @@
|
|||
import os
|
||||
|
||||
import architecture
|
||||
import arguments
|
||||
|
||||
|
||||
class Repository:
|
||||
def __init__(self, location):
|
||||
self.location = location
|
||||
self.architectures = [architecture.Architecture(self, a)
|
||||
for a in arguments.architectures]
|
||||
|
||||
def __iter__(self):
|
||||
return self.architectures.__iter__()
|
||||
|
||||
def __str__(self):
|
||||
lines = [
|
||||
f' Location: {self.location}',
|
||||
f'Architectures: {[architecture.name for architecture in self]}',
|
||||
]
|
||||
return os.linesep.join(lines)
|
Loading…
Add table
Add a link
Reference in a new issue