]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
meta/lib/oe/recipeutils.py: handle fetcher errors when checking for new commits
authorAlexander Kanavin <alex@linutronix.de>
Tue, 18 Mar 2025 16:45:53 +0000 (17:45 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 19 Mar 2025 09:47:35 +0000 (09:47 +0000)
commitc1056293f7cb32ee2bdf31441cc0b59d9ccfe556
treeb0ef59726ad95298c20183518c85dbd75e7e9e5d
parentf6737c762ac11f7653a64fac58428428c4222d0f
meta/lib/oe/recipeutils.py: handle fetcher errors when checking for new commits

Recent freedesktop instabilities are causing 'devtool check-upgrade-status' to
fail with:

bb.fetch2.FetchError: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; git -c gc.autoDetach=false -c core.pager=cat -c safe.bareRepository=all -c clone.defaultRemoteName=origin ls-remote https://gitlab.>
fatal: unable to access 'https://gitlab.freedesktop.org/mesa/kmscube/': The requested URL returned error: 502

and not print any results for this one or any unrelated recipes included in the check.

This change handles the error, so that if some upstream server isn't working
properly, latest upstream revision for that is marked as unknown, a
warning is printed and upstream version check for other recipes
isn't thwarted:

WARNING: Unable to obtain latest revision: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; git -c gc.autoDetach=false -c core.pager=cat -c safe.bareRepository=all -c clone.defaultRemoteName=origin ls-remote https://gitlab.freedesktop.org/mesa/piglit.git  failed with exit code 128, output:
remote: GitLab is not responding
fatal: unable to access 'https://gitlab.freedesktop.org/mesa/piglit.git/': The requested URL returned error: 502

piglit                    1.0             UNKNOWN_BROKEN  Ross Burton <ross.burton@arm.com>

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/recipeutils.py