diff --git a/arguments.py b/arguments.py index f9160ee..1d65880 100644 --- a/arguments.py +++ b/arguments.py @@ -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, diff --git a/msys.py b/msys.py index be34410..6cf8c2c 100644 --- a/msys.py +++ b/msys.py @@ -1,3 +1,4 @@ ARCHIVE = '.tar.xz' +ARCHITECTURES = ['x86_64', 'i686'] CHARSET = 'u8' SUBSYSTEMS = ['msys', 'clang', 'mingw', 'ucrt'] diff --git a/remote.py b/remote.py index a7cc406..d3a1912 100644 --- a/remote.py +++ b/remote.py @@ -7,7 +7,6 @@ import hypertext import msys -ARCHITECTURES = ['x86_64', 'i686'] ARCHITECTURES_BITS = { 'x86_64': 64, 'i686': 32, diff --git a/repository.py b/repository.py index 3926ac1..61b8e1d 100644 --- a/repository.py +++ b/repository.py @@ -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