Changed the logic the PKGLIST file is generated a little bit to ensure, that only files are included. If a directory is encountered, all files in this directory are added recursively.

Mon, 15 Jul 2013 18:42:44 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 15 Jul 2013 18:42:44 +0200
changeset 2798
c349fa5fe7c0
parent 2796
3584161f55e7
child 2799
ec8c717e80f5

Changed the logic the PKGLIST file is generated a little bit to ensure, that only files are included. If a directory is encountered, all files in this directory are added recursively.

Project/Project.py file | annotate | diff | comparison | revisions
--- a/Project/Project.py	Sat Jul 13 15:47:47 2013 +0200
+++ b/Project/Project.py	Mon Jul 15 18:42:44 2013 +0200
@@ -4251,10 +4251,18 @@
                 return  # don't overwrite
         
         # build the list of entries
-        lst = []
+        lst_ = []
         for key in \
             ["SOURCES", "FORMS", "RESOURCES", "TRANSLATIONS", "INTERFACES", "OTHERS"]:
-            lst.extend(self.pdata[key])
+            lst_.extend(self.pdata[key])
+        lst = []
+        for entry in lst_:
+            if os.path.isdir(self.getAbsolutePath(entry)):
+                lst.extend([self.getRelativePath(p) for p in 
+                    Utilities.direntries(self.getAbsolutePath(entry), True)])
+                continue
+            else:
+                lst.append(entry)
         lst.sort()
         if "PKGLIST" in lst:
             lst.remove("PKGLIST")

eric ide

mercurial