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

View file

@ -1836,8 +1836,13 @@ if __name__ == "__main__":
pkg_state[entry["name"]]["other_deps"] = entry["other_deps"] pkg_state[entry["name"]]["other_deps"] = entry["other_deps"]
else: else:
pkg_state[entry["name"]]["other_deps"] = [] pkg_state[entry["name"]]["other_deps"] = []
if "skip_branch_up_to_date" in entry and not ( if (
not args.no_skip is None and entry["name"] in args.no_skip "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 pkg_state[entry["name"]]["skip_branch_up_to_date"] = True
else: else: