diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2022-02-08 21:37:49 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-02-10 10:32:08 +0000 |
commit | 29b2b08fd35776b737063caef037cf094882bcc9 (patch) | |
tree | 55850d5b588b4b7c0ed83290258f3aec8f2ae59c /meta/classes/sstate.bbclass | |
parent | cecad01191146a1dd7ab4130cbb618168b874001 (diff) | |
download | poky-29b2b08fd35776b737063caef037cf094882bcc9.tar.gz |
sstate: fix up additional debugging when fetch fails occur
This should print the actual stack trace, for real :)
(From OE-Core rev: 9fbc7d6a2b2388e70a76cb97285e2f60bdc79624)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/sstate.bbclass')
-rw-r--r-- | meta/classes/sstate.bbclass | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass index 475ce40c6b..54edf0bec6 100644 --- a/meta/classes/sstate.bbclass +++ b/meta/classes/sstate.bbclass | |||
@@ -992,6 +992,8 @@ def sstate_checkhashes(sq_data, d, siginfo=False, currentcount=0, summary=True, | |||
992 | localdata.setVar('SRC_URI', srcuri) | 992 | localdata.setVar('SRC_URI', srcuri) |
993 | bb.debug(2, "SState: Attempting to fetch %s" % srcuri) | 993 | bb.debug(2, "SState: Attempting to fetch %s" % srcuri) |
994 | 994 | ||
995 | import traceback | ||
996 | |||
995 | try: | 997 | try: |
996 | fetcher = bb.fetch2.Fetch(srcuri.split(), localdata2, | 998 | fetcher = bb.fetch2.Fetch(srcuri.split(), localdata2, |
997 | connection_cache=thread_worker.connection_cache) | 999 | connection_cache=thread_worker.connection_cache) |
@@ -1000,9 +1002,9 @@ def sstate_checkhashes(sq_data, d, siginfo=False, currentcount=0, summary=True, | |||
1000 | found.add(tid) | 1002 | found.add(tid) |
1001 | missed.remove(tid) | 1003 | missed.remove(tid) |
1002 | except bb.fetch2.FetchError as e: | 1004 | except bb.fetch2.FetchError as e: |
1003 | bb.debug(2, "SState: Unsuccessful fetch test for %s (%s)\n%s" % (srcuri, repr(e), e.__traceback__)) | 1005 | bb.debug(2, "SState: Unsuccessful fetch test for %s (%s)\n%s" % (srcuri, repr(e), traceback.format_exc())) |
1004 | except Exception as e: | 1006 | except Exception as e: |
1005 | bb.error("SState: cannot test %s: %s\n%s" % (srcuri, repr(e), e.__traceback__)) | 1007 | bb.error("SState: cannot test %s: %s\n%s" % (srcuri, repr(e), traceback.format_exc())) |
1006 | 1008 | ||
1007 | if progress: | 1009 | if progress: |
1008 | bb.event.fire(bb.event.ProcessProgress(msg, len(tasklist) - thread_worker.tasks.qsize()), d) | 1010 | bb.event.fire(bb.event.ProcessProgress(msg, len(tasklist) - thread_worker.tasks.qsize()), d) |