setup-pureos-pkg-repo broken on bookworm
Just tried setting up openexr:
> $ ~/git/librem5-dev-tools/setup-pureos-pkg-repo -i 166
/home/fortysixandtwo/git/librem5-dev-tools/setup-pureos-pkg-repo:102: DeprecationWarning: `as_list=False` is deprecated and will be removed in a future version. Use `iterator=True` instead. (python-gitlab: /usr/lib/python3/dist-packages/gitlab/client.py:917)
projects = gl.projects.list(as_list=False)
Traceback (most recent call last):
File "/home/fortysixandtwo/git/librem5-dev-tools/setup-pureos-pkg-repo", line 199, in <module>
sys.exit(main(sys.argv))
^^^^^^^^^^^^^^
File "/home/fortysixandtwo/git/librem5-dev-tools/setup-pureos-pkg-repo", line 130, in main
def_branch.protect()
^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/gitlab/base.py", line 134, in __getattr__
raise AttributeError(message)
AttributeError: 'ProjectBranch' object has no attribute 'protect'. Did you mean: 'protected'?