From 6376f22cdbdd72b3846f02253b84448e9c7a42dd Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 9 Oct 2021 21:59:07 +0200 Subject: [PATCH] architecture/subsystem --- remote.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/remote.py b/remote.py index f9e525c..e87f452 100644 --- a/remote.py +++ b/remote.py @@ -42,6 +42,7 @@ class Remote: archive = archives[-1] a[architecture] = archive # + c[architecture] = {} for ss in self.subsystems: location = self.location if ss == SUBSYSTEMS[0]: @@ -53,7 +54,7 @@ class Remote: if subsystem in ARCHITECTURES_SUBSYSTEMS[architecture]: location = os.path.join(location, f'{subsystem}{FILES}') binary = requests.get(url).content - c[architecture] = binary + c[architecture][subsystem] = binary self.archives = a self.catalogs = c @@ -62,4 +63,7 @@ class Remote: 'Archives:'] for architecture, archive in reversed(sorted(self.archives.items())): lines.append(f'{architecture} → {archive}') + lines.append('Subsystems:') + for architecture, subsystems in reversed(sorted(self.catalogs.items())): + lines.append(f'{architecture} → {list(subsystems.keys())}') return os.linesep.join(lines)