PLW1508: fix

This commit is contained in:
Jörg Thalheim
2025-08-20 22:10:07 +02:00
parent 7f68a21257
commit cbb789bc69
2 changed files with 3 additions and 3 deletions

View File

@@ -90,7 +90,7 @@ def indent_command(command_list: list[str]) -> str:
return final_command
DEBUG_COMMANDS = os.environ.get("CLAN_DEBUG_COMMANDS", False)
DEBUG_COMMANDS = os.environ.get("CLAN_DEBUG_COMMANDS") == "1"
@dataclass

View File

@@ -869,7 +869,7 @@ class Flake:
self.identifier,
]
trace_prefetch = os.environ.get("CLAN_DEBUG_NIX_PREFETCH", False) == "1"
trace_prefetch = os.environ.get("CLAN_DEBUG_NIX_PREFETCH") == "1"
if not trace_prefetch:
log.debug(f"Prefetching flake {self.identifier}")
try:
@@ -1018,7 +1018,7 @@ class Flake:
];
}}
"""
trace = os.environ.get("CLAN_DEBUG_NIX_SELECTORS", False) == "1"
trace = os.environ.get("CLAN_DEBUG_NIX_SELECTORS") == "1"
try:
build_output = Path(
run(