subsystems
This commit is contained in:
parent
121441077a
commit
0eafef2c35
3 changed files with 6 additions and 4 deletions
|
@ -1,6 +1,7 @@
|
||||||
import argparse
|
import argparse
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
import msys
|
||||||
import remote
|
import remote
|
||||||
|
|
||||||
ACTION = 'action'
|
ACTION = 'action'
|
||||||
|
@ -51,7 +52,7 @@ msys remote repository's location
|
||||||
list of architectures to sync
|
list of architectures to sync
|
||||||
''')
|
''')
|
||||||
sync.add_argument(f'-{SUBSYSTEMS[0]}', f'--{SUBSYSTEMS}', type=str,
|
sync.add_argument(f'-{SUBSYSTEMS[0]}', f'--{SUBSYSTEMS}', type=str,
|
||||||
nargs='+', choices=remote.SUBSYSTEMS, help='''\
|
nargs='+', choices=msys.SUBSYSTEMS, help='''\
|
||||||
list of subsystems to sync
|
list of subsystems to sync
|
||||||
''')
|
''')
|
||||||
|
|
||||||
|
@ -61,7 +62,7 @@ list of subsystems to sync
|
||||||
directory containing modifications applying to filesystem
|
directory containing modifications applying to filesystem
|
||||||
''')
|
''')
|
||||||
build.add_argument(f'-{COMPRESSION[0]}', f'--{COMPRESSION}', type=str,
|
build.add_argument(f'-{COMPRESSION[0]}', f'--{COMPRESSION}', type=str,
|
||||||
choices=['7z', 'gz', 'xz', 'zst'], help='''\
|
choices=['gz', 'xz', 'zst'], help='''\
|
||||||
compression applying to archive
|
compression applying to archive
|
||||||
''')
|
''')
|
||||||
|
|
||||||
|
|
1
msys.py
1
msys.py
|
@ -1,2 +1,3 @@
|
||||||
ARCHIVE = '.tar.xz'
|
ARCHIVE = '.tar.xz'
|
||||||
CHARSET = 'u8'
|
CHARSET = 'u8'
|
||||||
|
SUBSYSTEMS = ['msys', 'clang', 'mingw', 'ucrt']
|
||||||
|
|
|
@ -4,6 +4,7 @@ import requests
|
||||||
import arguments
|
import arguments
|
||||||
import catalog
|
import catalog
|
||||||
import hypertext
|
import hypertext
|
||||||
|
import msys
|
||||||
|
|
||||||
|
|
||||||
ARCHITECTURES = ['x86_64', 'i686']
|
ARCHITECTURES = ['x86_64', 'i686']
|
||||||
|
@ -20,7 +21,6 @@ CHARSET = 'u8'
|
||||||
DISTRIBUTION = 'distrib'
|
DISTRIBUTION = 'distrib'
|
||||||
MINGW = 'mingw'
|
MINGW = 'mingw'
|
||||||
SIGNATURE = '.sig'
|
SIGNATURE = '.sig'
|
||||||
SUBSYSTEMS = ['msys', 'clang', 'mingw', 'ucrt']
|
|
||||||
|
|
||||||
|
|
||||||
class Remote:
|
class Remote:
|
||||||
|
@ -40,7 +40,7 @@ class Remote:
|
||||||
c[architecture] = {}
|
c[architecture] = {}
|
||||||
for ss in self.subsystems:
|
for ss in self.subsystems:
|
||||||
location = self.location
|
location = self.location
|
||||||
if ss == SUBSYSTEMS[0]:
|
if ss == msys.SUBSYSTEMS[0]:
|
||||||
subsystem = ss
|
subsystem = ss
|
||||||
location = os.path.join(location, subsystem, architecture)
|
location = os.path.join(location, subsystem, architecture)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue