]> code.ossystems Code Review - openembedded-core.git/commitdiff
package.bbclass: Correctly handle /usr/src/debug file ownership
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 26 Mar 2013 15:37:45 +0000 (15:37 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 26 Mar 2013 17:45:36 +0000 (17:45 +0000)
After the recent cached path operation improvements, we need to tell
the cache about directory changes. /usr/src/debug was was cached as
not created and this was leading to bugs in file ownership. This
change updates the cache and avoids this issue.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/package.bbclass

index 447a74bcb77d82c0c91cabe5dbeebb78a19feb9c..3479947141e7a3ef846fb4602fcd04bd6a1f0d77 100644 (file)
@@ -302,6 +302,7 @@ def copydebugsources(debugsrcdir, d):
             if not cpath.exists(basepath):
                 nosuchdir.append(basepath)
         bb.utils.mkdirhier(basepath)
+        cpath.updatecache(basepath)
 
         processdebugsrc =  "LC_ALL=C ; sort -z -u '%s' | egrep -v -z '(<internal>|<built-in>)$' | "
         # We need to ignore files that are not actually ours