sanity check for writable DL_DIR, to fix bug 606
cover sanity check for writable DL_DIR, to fix bug 606
Pull URL: git://git.pokylinux.org/poky-contrib.git
Branch: kyu3/bug606
Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=kyu3/bug606
Thanks,
Yu Ke <[email protected]>
---
Yu Ke (1):
sanity.bbclass: check if DL_DIR is writeable
meta/classes/sanity.bbclass | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-)
PATCH 1/1 sanity.bbclass: check if DL_DIR is writeable
bug 606 report that when DL_DIR is read-only, bitbake will silently hang, which is not informative
This patch add sanity check to make sure DL_DIR is writeable, and report error message if not
Fix [BUGID #606]
Signed-off-by Yu Ke <[email protected]>
--- meta/classes/sanity.bbclass | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-)
meta/classes/sanity.bbclass +6 -0
@@ -261,6 +261,12 @@ def check_sanity(e): f.close() # + # DL_DIR should be writable for fetcher to be functional + # + if not os.access(bb.data.getVar("DL_DIR", e.data, True), os.W_OK): + messages = messages + "Error: DL_DIR is not writeable" + + # # Check the 'ABI' of TMPDIR # current_abi = data.getVar('OELAYOUT_ABI', e.data, True)
Signature · 1 line
1.7.0.4