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

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Mar 14 14:13:05 EDT 2011


Author: martinl
Date: 2011-03-14 11:13:05 -0700 (Mon, 14 Mar 2011)
New Revision: 45660

Modified:
   grass/trunk/scripts/g.extension/g.extension.py
Log:
g.extension: remove 'patch' functionality (not reasonable approach)


Modified: grass/trunk/scripts/g.extension/g.extension.py
===================================================================
--- grass/trunk/scripts/g.extension/g.extension.py	2011-03-14 07:15:14 UTC (rev 45659)
+++ grass/trunk/scripts/g.extension/g.extension.py	2011-03-14 18:13:05 UTC (rev 45660)
@@ -275,19 +275,6 @@
         grass.fatal(_("GRASS Addons '%s' not found in repository") % module)
 
     os.chdir(os.path.join(tmpdir, module))
-
-    if os.path.exists(os.path.join(tmpdir, module, 'grass7.patch')):
-        grass.message(_("Patch for GRASS 7 detected. Applying..."))
-        if not grass.find_program('patch'):
-            grass.fatal(_("Program 'patch' required. Exiting."))
-        stdin = open(os.path.join(tmpdir, module, 'grass7.patch'))
-        grass.call(['patch',
-                    '-p0'],
-                   stdin = stdin,
-                   stdout = outdev)
-        # rename manual page
-        os.rename('description.html', module + '.html')
-        grass.verbose(_("Manual renamed from 'description.html' to '%s.html'") % module)
     
     grass.message(_("Compiling '%s'...") % module)
     if grass.call(['make',



More information about the grass-commit mailing list