[oe-commits] org.oe.dev package.bbclass: add workaround for wrongly globbed symlinks in FILES causing python
pb commit
openembedded-commits at lists.openembedded.org
Mon Jan 29 10:20:42 UTC 2007
package.bbclass: add workaround for wrongly globbed symlinks in FILES causing python
traceback spew during population
Author: pb at openembedded.org
Branch: org.openembedded.dev
Revision: 77212e456a021803396d11bcad7616c51e5c6d25
ViewMTN: http://monotone.openembedded.org/revision.psp?id=77212e456a021803396d11bcad7616c51e5c6d25
Files:
1
classes/package.bbclass
Diffs:
#
# mt diff -r4babe1caf820e719d27c7ed13d9518351ba729f3 -r77212e456a021803396d11bcad7616c51e5c6d25
#
#
#
# patch "classes/package.bbclass"
# from [edf00c41e2683d3180be274fedde142ed3837c83]
# to [4c30e72ec3dcec6b3bddaaa4e5dc3cb458993749]
#
============================================================
--- classes/package.bbclass edf00c41e2683d3180be274fedde142ed3837c83
+++ classes/package.bbclass 4c30e72ec3dcec6b3bddaaa4e5dc3cb458993749
@@ -408,11 +408,16 @@ python populate_packages () {
fpath = os.path.join(root,file)
dpath = os.path.dirname(fpath)
bb.mkdirhier(dpath)
+ if file in cleandirs:
+ cleandirs.remove(file)
ret = bb.movefile(file,fpath)
if ret is None or ret == 0:
raise bb.build.FuncFailed("File population failed")
for dir in cleandirs:
- os.rmdir(dir)
+ if os.path.isdir(dir):
+ os.rmdir(dir)
+ else:
+ bb.note("ERROR: directory %s went away unexpectedly during package population" % dir)
del localdata
os.chdir(workdir)
More information about the Openembedded-commits
mailing list