Openembedded Core Discussions
 help / color / mirror / Atom feed
* package.bbclass: Add warning about FILES containing '//'
@ 2012-05-30 10:59 Richard Purdie
  0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2012-05-30 10:59 UTC (permalink / raw)
  To: openembedded-core

'//' in a FILES variable causes hard to track down issues with
packaging. This adds a warning and attempts to auto-correct the issue to
try and make the problem more user friendly.

[YOCTO #2448]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index bc83bfb..6bce742 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -917,6 +917,9 @@ python populate_packages () {
 		files = filesvar.split()
 		file_links = {}
 		for file in files:
+			if file.find("//") != -1:
+				bb.warn("FILES variable for package %s contains '//' which is invalid. Attempting to fix this but you should correct the metadata.\n" % pkg)
+				file.replace("//", "/")
 			if os.path.isabs(file):
 				file = '.' + file
 			if not os.path.islink(file):





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

only message in thread, other threads:[~2012-05-30 11:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-30 10:59 package.bbclass: Add warning about FILES containing '//' Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox