Skip to content

Commit 5ba40b3

Browse files
authored
You can't watch what doesn't exist.
1 parent f3df02f commit 5ba40b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

toolchains/rpm/rpmbuild_configure.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ def _build_repo_for_rpmbuild_toolchain_impl(rctx):
8282
fail("debuginfo_type must be one of", DEBUGINFO_VALID_VALUES)
8383

8484
debuginfo_type = rctx.attr.debuginfo_type
85-
if debuginfo_type == DEBUGINFO_TYPE_AUTODETECT:
86-
rctx.watch(RELEASE_PATH)
85+
if debuginfo_type == DEBUGINFO_TYPE_AUTODETECT:
8786
if rctx.path(RELEASE_PATH).exists:
87+
rctx.watch(RELEASE_PATH)
8888
os_name, _ = _parse_release_info(rctx.read(RELEASE_PATH))
8989
debuginfo_type = DEBUGINFO_TYPE_BY_OS_RELEASE.get(os_name, debuginfo_type)
9090
else:

0 commit comments

Comments
 (0)