[GRASS-SVN] r66834 - grass-addons/tools/addons

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Nov 15 04:24:16 PST 2015


Author: martinl
Date: 2015-11-15 04:24:16 -0800 (Sun, 15 Nov 2015)
New Revision: 66834

Modified:
   grass-addons/tools/addons/build-xml.py
Log:
addons: fix generating modules.xml (scan only directories)

Modified: grass-addons/tools/addons/build-xml.py
===================================================================
--- grass-addons/tools/addons/build-xml.py	2015-11-15 11:12:13 UTC (rev 66833)
+++ grass-addons/tools/addons/build-xml.py	2015-11-15 12:24:16 UTC (rev 66834)
@@ -11,9 +11,9 @@
 DIST = 'dist.x86_64-unknown-linux-gnu'
 
 def get_list(addons):
-    mlist = os.listdir(os.path.join(addons))
-    for f in ('logs', 'modules.xml'):
-        mlist.remove(f)
+    mlist = [d for d in os.listdir(os.path.join(addons)) if os.path.isdir(os.path.join(addons, d))]
+    if 'logs' in mlist:
+        mlist.remove('logs')
     mlist.sort()
     return mlist
 



More information about the grass-commit mailing list