Skip to content

Commit bef3c68

Browse files
committed
Account for unset attribute
If the repofile isn't set at all, this will fail
1 parent 42a39d7 commit bef3c68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bazeldnf/extensions.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def _alias_repository_impl(repository_ctx):
107107
if repository_ctx.attr.lock_file.package:
108108
lock_file_path = repository_ctx.attr.lock_file.package + "/" + lock_file_path
109109

110-
if repository_ctx.attr.repofile.package:
110+
if repository_ctx.attr.repofile and repository_ctx.attr.repofile.package:
111111
repofile = repository_ctx.attr.repofile.package + "/" + repofile
112112

113113
repository_ctx.file(

0 commit comments

Comments
 (0)