Skip to content

Commit 8536289

Browse files
committed
Check production install only if async is needed
1 parent 6654418 commit 8536289

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/rez/package_cache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ def add_variants(self, variants: Iterable[Variant], package_cache_async: bool =
506506
# a prod install. On non-windows we could fork instead, but there would
507507
# remain no good solution on windows.
508508
#
509-
if not system.is_production_rez_install:
509+
if package_cache_async and not system.is_production_rez_install:
510510
raise PackageCacheError(
511511
"PackageCache.add_variants is only supported in a "
512512
"production rez installation."

0 commit comments

Comments
 (0)