summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@windriver.com>2010-09-01 13:37:01 -0500
committerRichard Purdie <rpurdie@linux.intel.com>2010-09-03 09:43:14 +0100
commit84e1f5a68962e35f796fbfddacddd6d16a4532b6 (patch)
tree7bca86e998eae7ac021e82e8a4491e3d4938cb49 /meta/classes
parent9f60a6fbfb93f17a9146f93380f9a3775fe48f4d (diff)
downloadpoky-84e1f5a68962e35f796fbfddacddd6d16a4532b6.tar.gz
package_rpm: Start packaging directories
Match ipkg behavior and unconditionally include directories in the packages Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/package_rpm.bbclass5
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass
index 3f0a8af72c..a5225dd809 100644
--- a/meta/classes/package_rpm.bbclass
+++ b/meta/classes/package_rpm.bbclass
@@ -109,8 +109,9 @@ python write_specfile () {
109 import os 109 import os
110 for rootpath, dirs, files in os.walk(walkpath): 110 for rootpath, dirs, files in os.walk(walkpath):
111 path = rootpath.replace(walkpath, "") 111 path = rootpath.replace(walkpath, "")
112 #for dir in dirs: 112 for dir in dirs:
113 # target.append("%dir " + path + "/" + dir) 113 # All packages own the directories their files are in...
114 target.append("%dir " + path + "/" + dir)
114 for file in files: 115 for file in files:
115 if conffiles.count(path + "/" + file): 116 if conffiles.count(path + "/" + file):
116 target.append("%config " + path + "/" + file) 117 target.append("%config " + path + "/" + file)