]> code.ossystems Code Review - openembedded-core.git/commitdiff
package_rpm: Start packaging directories
authorMark Hatle <mark.hatle@windriver.com>
Wed, 1 Sep 2010 18:37:01 +0000 (13:37 -0500)
committerRichard Purdie <rpurdie@linux.intel.com>
Fri, 3 Sep 2010 08:43:14 +0000 (09:43 +0100)
Match ipkg behavior and unconditionally include directories in the packages

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
meta/classes/package_rpm.bbclass

index 3f0a8af72ce087a21051fd28303f3d370b27d4de..a5225dd809ae0826b468185f4cc1f2842e729b97 100644 (file)
@@ -109,8 +109,9 @@ python write_specfile () {
                import os
                for rootpath, dirs, files in os.walk(walkpath):
                        path = rootpath.replace(walkpath, "")
-                       #for dir in dirs:
-                       #       target.append("%dir " + path + "/" + dir)
+                       for dir in dirs:
+                               # All packages own the directories their files are in...
+                               target.append("%dir " + path + "/" + dir)
                        for file in files:
                                if conffiles.count(path + "/" + file):
                                        target.append("%config " + path + "/" + file)