package.bbclass: comment out the cleandir since it breaks constructions like "inherit...
authorKoen Kooi <koen@openembedded.org>
Tue, 27 Feb 2007 09:32:09 +0000 (09:32 +0000)
committerKoen Kooi <koen@openembedded.org>
Tue, 27 Feb 2007 09:32:09 +0000 (09:32 +0000)
classes/package.bbclass

index 34f3993..07fdb7f 100644 (file)
@@ -409,16 +409,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)
+#                      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:
-                       if os.path.isdir(dir):
-                               os.rmdir(dir)
-                       else:
-                               bb.note("ERROR: directory %s went away unexpectedly during package population" % dir)
+#              for dir in cleandirs:
+#                      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)