[GRASS-SVN] r63497 - grass/trunk/scripts/g.extension
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Dec 12 04:20:06 PST 2014
Author: martinl
Date: 2014-12-12 04:20:06 -0800 (Fri, 12 Dec 2014)
New Revision: 63497
Modified:
grass/trunk/scripts/g.extension/g.extension.py
Log:
g.extension: fix grass_logo URL in installed addons
Modified: grass/trunk/scripts/g.extension/g.extension.py
===================================================================
--- grass/trunk/scripts/g.extension/g.extension.py 2014-12-12 12:06:22 UTC (rev 63496)
+++ grass/trunk/scripts/g.extension/g.extension.py 2014-12-12 12:20:06 UTC (rev 63497)
@@ -973,10 +973,16 @@
else:
f.close()
+ pos = []
+
+ # fix logo URL
+ pattern = r'''<a href="([^"]+)"><img src="grass_logo.png"'''
+ for match in re.finditer(pattern, shtml):
+ pos.append(match.start(1))
+
# find URIs
pattern = r'''<a href="([^"]+)">([^>]+)</a>'''
addons = get_installed_extensions(force = True)
- pos = []
for match in re.finditer(pattern, shtml):
if match.group(1)[:7] == 'http://':
continue
More information about the grass-commit
mailing list