[GRASS-SVN] r49718 - grass/trunk/scripts/g.extension
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Dec 13 12:56:25 EST 2011
Author: martinl
Date: 2011-12-13 09:56:25 -0800 (Tue, 13 Dec 2011)
New Revision: 49718
Modified:
grass/trunk/scripts/g.extension/g.extension.py
Log:
g.extension: register full path for the files (tag: binary)
Modified: grass/trunk/scripts/g.extension/g.extension.py
===================================================================
--- grass/trunk/scripts/g.extension/g.extension.py 2011-12-13 17:12:56 UTC (rev 49717)
+++ grass/trunk/scripts/g.extension/g.extension.py 2011-12-13 17:56:25 UTC (rev 49718)
@@ -296,7 +296,7 @@
indent += 4
for fnode in bnode.findall('file'):
fo.write('%s<file>%s</file>\n' % \
- (' ' * indent, fnode.text))
+ (' ' * indent, os.path.join(options['prefix'], fnode.text)))
indent -= 4
fo.write('%s</binary>\n' % (' ' * indent))
libgisRev = grass.version()['libgis_revision']
@@ -586,8 +586,7 @@
if flist:
removed = False
err = list()
- for f in flist:
- fpath = os.path.join(options['prefix'], f)
+ for fpath in flist:
try:
if force:
grass.verbose(fpath)
@@ -603,6 +602,8 @@
if err:
for e in err:
grass.error(e)
+ else:
+ remove_extension_std(force)
else:
remove_extension_std(force)
More information about the grass-commit
mailing list