summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-05-30 11:59:01 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-05-30 17:32:31 +0100
commitb3e76b33f354c7747f86514abd3844afba64d8bb (patch)
tree5b70d0252bab32ed4d000224826242b797caf6d5 /meta/classes
parent8c2e3c96790494014bf68de5b53dfab314aef47f (diff)
downloadpoky-b3e76b33f354c7747f86514abd3844afba64d8bb.tar.gz
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] (From OE-Core rev: 0e33e314b1d2d3779658696f13a274b20d698667) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/package.bbclass3
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 () {
917 files = filesvar.split() 917 files = filesvar.split()
918 file_links = {} 918 file_links = {}
919 for file in files: 919 for file in files:
920 if file.find("//") != -1:
921 bb.warn("FILES variable for package %s contains '//' which is invalid. Attempting to fix this but you should correct the metadata.\n" % pkg)
922 file.replace("//", "/")
920 if os.path.isabs(file): 923 if os.path.isabs(file):
921 file = '.' + file 924 file = '.' + file
922 if not os.path.islink(file): 925 if not os.path.islink(file):