From def201aca819862470b879d5beb75fcf3d46f87f Mon Sep 17 00:00:00 2001 From: ajohns Date: Tue, 4 Aug 2020 20:13:49 +1000 Subject: [PATCH] trivial change, py3.4 on Windows is the version that sets os.stat().st_dev properly. --- src/rez/package_cache.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rez/package_cache.py b/src/rez/package_cache.py index a95e6f042..323f01190 100644 --- a/src/rez/package_cache.py +++ b/src/rez/package_cache.py @@ -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: