get_subsystem

This commit is contained in:
Marc Beninca 2021-10-10 05:01:21 +02:00 committed by Marc Beninca
parent 44e6cedaa4
commit b0ecc43961
2 changed files with 15 additions and 6 deletions

View file

@ -25,12 +25,9 @@ class Remote:
#
c[architecture] = {}
for subsystem in subsystems:
location = self.location
if subsystem == msys.SUBSYSTEM:
location = os.path.join(location, subsystem, architecture)
else:
location = os.path.join(location, msys.CRT, subsystem)
location = os.path.join(location,
location = os.path.join(self.location,
msys.get_subsystem(architecture,
subsystem),
f'{subsystem}{msys.CATALOG}')
binary = requests.get(location).content
c[architecture][subsystem] = catalog.Catalog(binary)