* [PATCH 0/1] sanity check for writable DL_DIR, to fix bug 606
@ 2010-12-22 8:23 Yu Ke
2010-12-22 8:23 ` [PATCH 1/1] sanity.bbclass: check if DL_DIR is writeable Yu Ke
0 siblings, 1 reply; 2+ messages in thread
From: Yu Ke @ 2010-12-22 8:23 UTC (permalink / raw)
To: poky
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 <ke.yu@intel.com>
---
Yu Ke (1):
sanity.bbclass: check if DL_DIR is writeable
meta/classes/sanity.bbclass | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 1/1] sanity.bbclass: check if DL_DIR is writeable
2010-12-22 8:23 [PATCH 0/1] sanity check for writable DL_DIR, to fix bug 606 Yu Ke
@ 2010-12-22 8:23 ` Yu Ke
0 siblings, 0 replies; 2+ messages in thread
From: Yu Ke @ 2010-12-22 8:23 UTC (permalink / raw)
To: poky
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 <ke.yu@intel.com>
---
meta/classes/sanity.bbclass | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index e9217f9..696629e 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -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)
--
1.7.0.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-12-22 8:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-22 8:23 [PATCH 0/1] sanity check for writable DL_DIR, to fix bug 606 Yu Ke
2010-12-22 8:23 ` [PATCH 1/1] sanity.bbclass: check if DL_DIR is writeable Yu Ke
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox