catalog
This commit is contained in:
parent
a0b1a1ea94
commit
74e9b15378
3 changed files with 3 additions and 3 deletions
|
@ -2,7 +2,6 @@ import argparse
|
|||
import os
|
||||
|
||||
import msys
|
||||
import remote
|
||||
|
||||
ACTION = 'action'
|
||||
ARCHITECTURES = 'architectures'
|
||||
|
|
1
msys.py
1
msys.py
|
@ -1,5 +1,6 @@
|
|||
ARCHIVE = '.tar.xz'
|
||||
ARCHITECTURES = ['x86_64', 'i686']
|
||||
CATALOG = '.files'
|
||||
CHARSET = 'u8'
|
||||
SIGNATURE = '.sig'
|
||||
SUBSYSTEMS = ['msys', 'clang', 'mingw', 'ucrt']
|
||||
|
|
|
@ -15,7 +15,6 @@ ARCHITECTURES_SUBSYSTEMS = {
|
|||
'x86_64': ['msys', 'clang64', 'mingw64', 'ucrt64'],
|
||||
'i686': ['msys', 'clang32', 'mingw32'],
|
||||
}
|
||||
CATALOG = '.files'
|
||||
DISTRIBUTION = 'distrib'
|
||||
MINGW = 'mingw'
|
||||
|
||||
|
@ -44,7 +43,8 @@ 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}{CATALOG}')
|
||||
location = os.path.join(location,
|
||||
f'{subsystem}{msys.CATALOG}')
|
||||
binary = requests.get(location).content
|
||||
c[architecture][subsystem] = catalog.Catalog(binary)
|
||||
self.archives = a
|
||||
|
|
Loading…
Reference in a new issue