[GRASS-SVN] r64552 - grass/trunk/scripts/g.extension

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Feb 11 01:54:20 PST 2015


Author: martinl
Date: 2015-02-11 01:54:20 -0800 (Wed, 11 Feb 2015)
New Revision: 64552

Modified:
   grass/trunk/scripts/g.extension/g.extension.py
Log:
g.extension: fix http replacement handling
             message cosmetics


Modified: grass/trunk/scripts/g.extension/g.extension.py
===================================================================
--- grass/trunk/scripts/g.extension/g.extension.py	2015-02-11 09:51:06 UTC (rev 64551)
+++ grass/trunk/scripts/g.extension/g.extension.py	2015-02-11 09:54:20 UTC (rev 64552)
@@ -809,7 +809,7 @@
     if force:
         grass.verbose(_("List of removed files:"))
     else:
-        grass.info(_("Files to be removed (use flag 'f' to force removal):"))
+        grass.info(_("Files to be removed:"))
 
     remove_modules(mlist, force)
 
@@ -818,8 +818,8 @@
         remove_extension_xml(mlist)
         grass.message(_("Extension <%s> successfully uninstalled.") % options['extension'])
     else:
-        grass.warning(_("Extension <%s> not removed.\n"
-                        "Re-run '%s' with 'f' flag to force removal") % (options['extension'], 'g.extension'))
+        grass.warning(_("Extension <%s> not removed. "
+                        "Re-run '%s' with '-f' flag to force removal") % (options['extension'], 'g.extension'))
 
 # remove existing extension(s) (reading XML file)
 def remove_modules(mlist, force = False):
@@ -988,7 +988,7 @@
     pattern = r'''<a href="([^"]+)">([^>]+)</a>'''
     addons = get_installed_extensions(force = True)
     for match in re.finditer(pattern, shtml):
-        if match.group(1)[:7] == 'http://':
+        if match.group(1)[:4] == 'http':
             continue
         if match.group(1).replace('.html', '') in addons:
             continue



More information about the grass-commit mailing list