From f4295c931353794c869f0db8ef0441a024c59022 Mon Sep 17 00:00:00 2001 From: doruchan Date: Tue, 16 Jun 2026 23:33:15 +0000 Subject: [PATCH] Check production install only if async is needed Signed-off-by: doruchan --- src/rez/package_cache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rez/package_cache.py b/src/rez/package_cache.py index 0f8335756..e4e5eac85 100644 --- a/src/rez/package_cache.py +++ b/src/rez/package_cache.py @@ -506,7 +506,7 @@ def add_variants(self, variants: Iterable[Variant], package_cache_async: bool = # a prod install. On non-windows we could fork instead, but there would # remain no good solution on windows. # - if not system.is_production_rez_install: + if package_cache_async and not system.is_production_rez_install: raise PackageCacheError( "PackageCache.add_variants is only supported in a " "production rez installation."