diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-05-30 11:59:01 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-05-30 17:24:18 +0100 |
commit | 0e33e314b1d2d3779658696f13a274b20d698667 (patch) | |
tree | f0e832164eca0030f1f53a455a5031b87a3787cb | |
parent | 859255dd30958db018d40ede94a76db36a98da7f (diff) | |
download | openembedded-core-0e33e314b1d2d3779658696f13a274b20d698667.tar.gz openembedded-core-0e33e314b1d2d3779658696f13a274b20d698667.tar.bz2 openembedded-core-0e33e314b1d2d3779658696f13a274b20d698667.zip |
package.bbclass: Add warning about FILES containing '//'
'//' 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>
-rw-r--r-- | meta/classes/package.bbclass | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index 41139ef921..10c2f0a3ee 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): |