diff options
| author | Anderson Bravalheri <andersonbravalheri@gmail.com> | 2022-02-27 18:57:50 +0000 |
|---|---|---|
| committer | Anderson Bravalheri <andersonbravalheri@gmail.com> | 2022-02-27 18:57:50 +0000 |
| commit | 597ff8774e505803a565d9bebde2f8a48519b033 (patch) | |
| tree | 9aa1eba30f4e1cdc04f3ad27949c472e75107671 /setuptools/package_index.py | |
| parent | fb7b30d64eb1475a0f5692e015ac123834ff6c40 (diff) | |
| download | python-setuptools-git-597ff8774e505803a565d9bebde2f8a48519b033.tar.gz | |
Just check for if destination file exists
Diffstat (limited to 'setuptools/package_index.py')
| -rw-r--r-- | setuptools/package_index.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/setuptools/package_index.py b/setuptools/package_index.py index 2c85ff2a..14881d29 100644 --- a/setuptools/package_index.py +++ b/setuptools/package_index.py @@ -680,8 +680,7 @@ class PackageIndex(Environment): # Make sure the file has been downloaded to the temp dir. if os.path.dirname(filename) != tmpdir: dst = os.path.join(tmpdir, basename) - both_exist = os.path.exists(filename) and os.path.exists(dst) - if not (both_exist and os.path.samefile(filename, dst)): + if not (os.path.exists(dst) and os.path.samefile(filename, dst)): shutil.copy2(filename, dst) filename = dst |
