[GRASS-SVN] r58271 - grass/trunk/scripts/i.pansharpen

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Nov 21 13:32:02 PST 2013


Author: neteler
Date: 2013-11-21 13:32:01 -0800 (Thu, 21 Nov 2013)
New Revision: 58271

Modified:
   grass/trunk/scripts/i.pansharpen/i.pansharpen.py
Log:
i.pansharpen: fix overwrite flag handling

Modified: grass/trunk/scripts/i.pansharpen/i.pansharpen.py
===================================================================
--- grass/trunk/scripts/i.pansharpen/i.pansharpen.py	2013-11-21 21:27:41 UTC (rev 58270)
+++ grass/trunk/scripts/i.pansharpen/i.pansharpen.py	2013-11-21 21:32:01 UTC (rev 58271)
@@ -103,8 +103,7 @@
     outg = grass.core.find_file('%s_green' % out)
     outr = grass.core.find_file('%s_red' % out)
         
-    if (outb['name'] != '' or outg['name'] != '' or outr['name'] != '') and \
-        (not grass.overwrite() and not flags['o']):
+    if (outb['name'] != '' or outg['name'] != '' or outr['name'] != '') and not grass.overwrite():
         grass.warning(_('Maps with selected output prefix names already exist. \
                         Delete them or use overwrite flag'))
         return



More information about the grass-commit mailing list