From 82f5290c18eaea1c037013c03e9dbde31e478974 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 9 Oct 2021 23:52:19 +0200 Subject: [PATCH] catalog --- remote.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/remote.py b/remote.py index 37fb80d..cb73ed0 100644 --- a/remote.py +++ b/remote.py @@ -16,9 +16,9 @@ ARCHITECTURES_SUBSYSTEMS = { 'x86_64': ['msys', 'clang64', 'mingw64', 'ucrt64'], 'i686': ['msys', 'clang32', 'mingw32'], } +CATALOG = '.files' CHARSET = 'u8' DISTRIBUTION = 'distrib' -FILES = '.files' MINGW = 'mingw' SIGNATURE = '.sig' SUBSYSTEMS = ['msys', 'clang', 'mingw', 'ucrt'] @@ -53,7 +53,7 @@ class Remote: subsystem = f'{ss}{ARCHITECTURES_BITS[architecture]}' location = os.path.join(location, MINGW, subsystem) if subsystem in ARCHITECTURES_SUBSYSTEMS[architecture]: - location = os.path.join(location, f'{subsystem}{FILES}') + location = os.path.join(location, f'{subsystem}{CATALOG}') binary = requests.get(location).content c[architecture][subsystem] = catalog.Catalog(binary) self.archives = a