rename variable

This commit is contained in:
Yuxiang Zhang 2019-06-16 20:18:43 +08:00 committed by GitHub
parent 5a587d5560
commit 87740ddc14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,7 +41,7 @@ CONDA_CLOUD_REPOS = (
"plotly/linux-64", "plotly/linux-32", "plotly/osx-64", "plotly/win-64", "plotly/win-32", "plotly/noarch",
)
CONDA_CLOUD_EXCLUDED_PACKAGES = (
EXCLUDED_PACKAGES = (
"pytorch-nightly", "pytorch-nightly-cpu", "ignite-nightly",
)
@ -90,7 +90,7 @@ def sync_repo(repo_url: str, local_dir: Path, tmpdir: Path):
packages = repodata['packages']
for filename, meta in packages.items():
if meta['name'] in CONDA_CLOUD_EXCLUDED_PACKAGES:
if meta['name'] in EXCLUDED_PACKAGES:
continue
file_size, md5 = meta['size'], meta['md5']