All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] base.bbclass: re-adding backward compatibility with bitbake w.r.t decodeurl
@ 2010-07-06 23:06 Khem Raj
  0 siblings, 0 replies; only message in thread
From: Khem Raj @ 2010-07-06 23:06 UTC (permalink / raw)
  To: openembedded-devel

I am testing this patch to restore the behavior while using unpatched 
bitbake. Please lend a hand in testing this fix.

Thanks
-Khem

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 classes/base.bbclass |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/classes/base.bbclass b/classes/base.bbclass
index 2da0b7a..d6058f0 100644
--- a/classes/base.bbclass
+++ b/classes/base.bbclass
@@ -219,7 +219,15 @@ def oe_unpack_file(file, data, url = None):
 			# The "destdir" handling was specifically done for FILESPATH
 			# items.  So, only do so for file:// entries.
 			if type == "file":
-				dest = os.path.dirname(path) or "."
+				if not host:
+				# this case is for backward compatiblity with older version
+				# of bitbake which do not have the fix
+				# http://cgit.openembedded.org/cgit.cgi/bitbake/commit/?id=ca257adc587bb0937ea76d8b32b654fdbf4192b8
+				# this should not be needed once all releases of bitbake has this fix
+				# applied/backported
+					dest = os.path.join(host, os.path.dirname(path)) or "."
+				else:
+					dest = os.path.dirname(path) or "."
 			else:
 				dest = "."
 			bb.mkdirhier("%s" % os.path.join(os.getcwd(),dest))
-- 
1.7.1




^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2010-07-06 23:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-06 23:06 [PATCH] base.bbclass: re-adding backward compatibility with bitbake w.r.t decodeurl Khem Raj

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.