Skip to content

Commit

Permalink
trivial change, py3.4 on Windows is the version that sets os.stat().s…
Browse files Browse the repository at this point in the history
…t_dev properly.
  • Loading branch information
ajohns committed Aug 4, 2020
1 parent fea76ed commit def201a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rez/package_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,12 +187,12 @@ def add_variant(self, variant, force=False):
)

# Package is already on same disk device as package cache. Note that
# this check is skipped on Windows + Py<=2.7, as os.stat does not
# this check is skipped on Windows + Py<3.4, as os.stat does not
# support device identification.
#
dev_stat_not_supported = (
platform.system() == "Windows" and
sys.version_info[:2] <= (2, 7)
sys.version_info[:2] < (3, 4)
)

if not config.package_cache_same_device and not dev_stat_not_supported:
Expand Down

0 comments on commit def201a

Please sign in to comment.