location,str
This commit is contained in:
parent
3707f42b77
commit
9cd6155f8c
4 changed files with 21 additions and 11 deletions
|
@ -10,7 +10,7 @@ import repository
|
|||
|
||||
class Remote(repository.Repository):
|
||||
def __init__(self, args):
|
||||
self.location = args[arguments.REMOTE]
|
||||
super().__init__(args[arguments.REMOTE])
|
||||
self.architectures = args[arguments.ARCHITECTURES]
|
||||
self.subsystems = args[arguments.SUBSYSTEMS]
|
||||
self.load()
|
||||
|
@ -36,8 +36,10 @@ class Remote(repository.Repository):
|
|||
self.catalogs = c
|
||||
|
||||
def __str__(self):
|
||||
lines = [f'Location: {self.location}',
|
||||
'Archives:']
|
||||
lines = [
|
||||
super().__str__(),
|
||||
'Archives:',
|
||||
]
|
||||
for architecture, archive in reversed(sorted(self.archives.items())):
|
||||
lines.append(f'{architecture} → {archive}')
|
||||
lines.append('Subsystems:')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue