[GRASS-SVN] r49735 - grass/trunk/scripts/g.extension
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Dec 14 05:58:06 EST 2011
Author: martinl
Date: 2011-12-14 02:58:05 -0800 (Wed, 14 Dec 2011)
New Revision: 49735
Modified:
grass/trunk/scripts/g.extension/g.extension.py
Log:
g.extension: more appropriate for the warning (see r49730)
Modified: grass/trunk/scripts/g.extension/g.extension.py
===================================================================
--- grass/trunk/scripts/g.extension/g.extension.py 2011-12-14 09:55:01 UTC (rev 49734)
+++ grass/trunk/scripts/g.extension/g.extension.py 2011-12-14 10:58:05 UTC (rev 49735)
@@ -581,6 +581,8 @@
fXML = os.path.join(options['prefix'], 'modules.xml')
name = options['extension']
if name not in get_installed_extensions():
+ # try even if module does not seem to be available,
+ # as the user may be trying to get rid of left over cruft
grass.warning(_("Extension <%s> not found") % name)
if force:
@@ -632,8 +634,6 @@
# remove exising extension (using standard files layout)
def remove_extension_std(force = False):
- # try even if module does not seem to be available,
- # as the user may be trying to get rid of left over cruft
for fpath in [os.path.join(options['prefix'], 'bin', options['extension']),
os.path.join(options['prefix'], 'scripts', options['extension']),
os.path.join(options['prefix'], 'docs', 'html', options['extension'] + '.html'),
More information about the grass-commit
mailing list