setup-pureos-pkg: Raises error trying to protect branch
I've not tested if this also happens on Byzantium, but it surely happens on Bookworm/Sid:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/gitlab/base.py", line 103, in __getattr__
return self.__dict__["_updated_attrs"][name]
KeyError: 'protect'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/gitlab/base.py", line 106, in __getattr__
value = self.__dict__["_attrs"][name]
KeyError: 'protect'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/gitlab/base.py", line 126, in __getattr__
return self.__dict__["_parent_attrs"][name]
KeyError: 'protect'
The above exception was the direct cause of the following exception:
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 137, in main
branch.protect()
File "/usr/lib/python3/dist-packages/gitlab/base.py", line 142, in __getattr__
raise AttributeError(message) from exc
AttributeError: 'ProjectBranch' object has no attribute 'protect'. Did you mean: 'protected'?