As part of getting the information we need to determine layer dependencies we run the update_layer.py from update.py with --initial and pass the required information back via stdout, however that results in it being printed to the console: ----------- snip ----------- $ python3 layerindex/update.py -l openembedded-core -b master INFO: Fetching remote repository git://git.openembedded.org/openembedded-core INFO: Fetching bitbake from remote repository git://git.openembedded.org/bitbake NOTE: Starting bitbake server... INFO: Collecting data for layer openembedded-core on branch master BBFILE_COLLECTIONS = "core" LAYERVERSION = "11" LAYERDEPENDS = "" LAYERRECOMMENDS = "" INFO: Sorting layers for branch master ... ----------- snip ----------- This is quite ugly, we need a way to hide this output (without hiding any errors from update_layer.py if they do happen). Perhaps we need a different channel to pass the data back in?
Bulk move from 4.99 or 0.00 to 5.99
For reference, the --initial option in update_layer.py: ... parser.add_option("-i", "--initial", help = "Print initial values parsed from layer.conf only", ... which is called in the cmd built in main() for update.py: ... cmd = prepare_update_layer_command(options, branchobj, layer,initial=True) logger.debug('Running layer update command: %s' % cmd) ret, output = utils.run_command_interruptible(cmd) logger.debug('output: %s' % output) ...
This means we can easily miss the fact that a layer can no longer be fetched: ERROR: Fetch of layer meta-telephony failed: Cloning into 'git___git_osmocom_org_meta-telephony'... fatal: unable to connect to git.osmocom.org: git.osmocom.org[0: 78.46.96.155]: errno=Connection refused git.osmocom.org[1: 2a01:4f8:120:8470::2]: errno=Cannot assign requested address ERROR: Fetch of layer meta-pypy failed: Cloning into 'https___github_com_mzakharo_meta-pypy_git'... fatal: could not read Username for 'https://github.com': terminal prompts disabled ERROR: Fetch of layer meta-sitec-score failed: Cloning into 'https___github_com_sitec-systems_meta-sitec-score'... fatal: could not read Username for 'https://github.com': terminal prompts disabled ERROR: Fetch of layer meta-sitec-bsp failed: Cloning into 'https___github_com_sitec-systems_meta-sitec-bsp'... fatal: could not read Username for 'https://github.com': terminal prompts disabled ERROR: Fetch of layer meta-tangle failed: Cloning into 'https___github_com_iotaledger_meta-iota'... fatal: could not read Username for 'https://github.com': terminal prompts disabled ERROR: Fetch of layer meta-mediatek failed: Cloning into 'https___gitlab_com_baylibre_mediatek_meta-mediatek_git'... fatal: could not read Username for 'https://gitlab.com': terminal prompts disabled
Move from 5.99 to 6.99