Skip to content

Commit

Permalink
merged fix 2 by @analog-cbarber for conda-incubator#32
Browse files Browse the repository at this point in the history
  • Loading branch information
analog-cbarber authored and Maksim Zinal committed Jan 25, 2023
1 parent 795a5cd commit 87d02c7
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions conda_mirror/conda_mirror.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

DEFAULT_BAD_LICENSES = ["agpl", ""]

DEFAULT_PLATFORMS = ["linux-64", "linux-32", "osx-64", "win-64", "win-32"]
DEFAULT_PLATFORMS = ["linux-64", "linux-32", "osx-64", "win-64", "win-32", "noarch"]

DEFAULT_CHUNK_SIZE = 16 * 1024

Expand Down Expand Up @@ -241,7 +241,6 @@ def _str_or_false(x: str) -> Union[str, bool]:
x = False
return x


def _make_arg_parser():
"""
Localize the ArgumentParser logic
Expand Down Expand Up @@ -280,8 +279,7 @@ def _make_arg_parser():
action="append",
default=[],
help=(
"The OS platform(s) to mirror. one of: {'linux-64', 'linux-32',"
"'osx-64', 'win-32', 'win-64'}. "
f"The OS platform(s) to mirror. one of: {', '.join(DEFAULT_PLATFORMS)} "
"May be specified multiple times."
),
)
Expand Down Expand Up @@ -1015,7 +1013,7 @@ def main(
apply checks
platform : Union[str,List[str]]
The platforms that you wish to mirror. Common options are
'linux-64', 'osx-64', 'win-64' and 'win-32'. Any platform is valid as
'linux-64', 'osx-64', 'win-64', 'win-32' and 'noarch'. Any platform is valid as
long as the url resolves.
blacklist : iterable of tuples, optional
The values of blacklist should be (key, glob) where key is one of the
Expand Down

0 comments on commit 87d02c7

Please sign in to comment.