Changeset: 4599ec916dd1 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=4599ec916dd1
Modified Files:
        testing/listexports.py.in
Branch: Jul2012
Log Message:

Add some safety measures.
Don't consider files that start with . or that are in fact not files.


diffs (16 lines):

diff --git a/testing/listexports.py.in b/testing/listexports.py.in
--- a/testing/listexports.py.in
+++ b/testing/listexports.py.in
@@ -62,7 +62,11 @@ def findfiles(dirlist, skipfiles = [], s
                 if d in dirs:
                     dirs.remove(d)
             for f in files:
-                if not done.has_key(f) and (f.endswith('.c') or 
f.endswith('.h')) and f not in skipfiles:
+                if not done.has_key(f) and \
+                        (f.endswith('.c') or f.endswith('.h')) and \
+                        not f.startswith('.') and \
+                        f not in skipfiles and \
+                        os.path.isfile(os.path.join(root, f)):
                     decls.extend(extract(os.path.join(root, f)))
                     done[f] = True
     decls.sort()
_______________________________________________
Checkin-list mailing list
Checkin-list@monetdb.org
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to