Loading
install_pmbootstrap: fetch master and v24.12
It seems that since a recent gitlab and gitlab runner update, origin/master is not getting checked out by default anymore. This causes pmbootstrap to fail as it tries to get pmaports.cfg from origin/master. Fix it by fetching origin master and origin v24.12 manually.
Fix for:
[16:59:10] % cd /builds/postmarketOS/pmaports; git show origin/master:channels.cfg
[16:59:10] NOTE: fix this by fetching your pmaports.git, e.g. with 'pmbootstrap pull'
[16:59:10] ERROR: Failed to read channels.cfg from 'origin/master' branch of your local pmaports clone
[16:59:10] See also: <https://postmarketos.org/troubleshooting>
[16:59:10] Traceback (most recent call last):
File "/tmp/pmbootstrap/pmb/helpers/git.py", line 220, in parse_channels_cfg
cfg.read_string(stdout)
File "/usr/lib/python3.12/configparser.py", line 710, in read_string
self.read_file(sfile, source)
File "/usr/lib/python3.12/configparser.py", line 705, in read_file
self._read(f, source)
File "/usr/lib/python3.12/configparser.py", line 1064, in _read
raise MissingSectionHeaderError(fpname, lineno, line)
configparser.MissingSectionHeaderError: File contains no section headers.
file: '<string>', line: 1
"fatal: invalid object name 'origin/master'.\n"
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/tmp/pmbootstrap/pmb/__init__.py", line 84, in main
config_init.frontend(args)
File "/tmp/pmbootstrap/pmb/config/init.py", line 790, in frontend
channel = ask_for_channel(config)
^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pmbootstrap/pmb/config/init.py", line 200, in ask_for_channel
channels_cfg = pmb.helpers.git.parse_channels_cfg(pkgrepo_default_path())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pmbootstrap/pmb/meta/__init__.py", line 42, in __call__
self.cache.cache[key] = self.func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pmbootstrap/pmb/helpers/git.py", line 223, in parse_channels_cfg
raise RuntimeError(
RuntimeError: Failed to read channels.cfg from 'origin/master' branch of your local pmaports clone