architectures
This commit is contained in:
parent
efb590b72e
commit
5fe26606e0
4 changed files with 3 additions and 3 deletions
|
@ -48,7 +48,7 @@ action to perform onto msys repository
|
|||
msys remote repository's location
|
||||
''')
|
||||
sync.add_argument(f'-{ARCHITECTURES[0]}', f'--{ARCHITECTURES}', type=str,
|
||||
nargs='+', choices=remote.ARCHITECTURES, help='''\
|
||||
nargs='+', choices=msys.ARCHITECTURES, help='''\
|
||||
list of architectures to sync
|
||||
''')
|
||||
sync.add_argument(f'-{SUBSYSTEMS[0]}', f'--{SUBSYSTEMS}', type=str,
|
||||
|
|
1
msys.py
1
msys.py
|
@ -1,3 +1,4 @@
|
|||
ARCHIVE = '.tar.xz'
|
||||
ARCHITECTURES = ['x86_64', 'i686']
|
||||
CHARSET = 'u8'
|
||||
SUBSYSTEMS = ['msys', 'clang', 'mingw', 'ucrt']
|
||||
|
|
|
@ -7,7 +7,6 @@ import hypertext
|
|||
import msys
|
||||
|
||||
|
||||
ARCHITECTURES = ['x86_64', 'i686']
|
||||
ARCHITECTURES_BITS = {
|
||||
'x86_64': 64,
|
||||
'i686': 32,
|
||||
|
|
|
@ -18,7 +18,7 @@ class Repository:
|
|||
d = {}
|
||||
_, architectures, _ = next(os.walk(distribution))
|
||||
for architecture in [a for a in architectures
|
||||
if a in remote.ARCHITECTURES]:
|
||||
if a in msys.ARCHITECTURES]:
|
||||
directory = os.path.join(distribution, architecture)
|
||||
_, _, files = next(os.walk(directory))
|
||||
archives = sorted([file for file in files
|
||||
|
|
Loading…
Reference in a new issue