Fix improper checking of "skip_branch_up_to_date"

This commit is contained in:
Stephen Seo 2023-10-12 11:28:40 +09:00
parent 6c0aa0abdd
commit ef2daa1c85
1 changed files with 7 additions and 2 deletions

View File

@ -1836,8 +1836,13 @@ if __name__ == "__main__":
pkg_state[entry["name"]]["other_deps"] = entry["other_deps"]
else:
pkg_state[entry["name"]]["other_deps"] = []
if "skip_branch_up_to_date" in entry and not (
not args.no_skip is None and entry["name"] in args.no_skip
if (
"skip_branch_up_to_date" in entry
and type(entry["skip_branch_up_to_date"]) is bool
and entry["skip_branch_up_to_date"]
and not (
not args.no_skip is None and entry["name"] in args.no_skip
)
):
pkg_state[entry["name"]]["skip_branch_up_to_date"] = True
else: