[GRASS-SVN] r50019 - grass/trunk/scripts/r.mask

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Jan 1 05:49:59 EST 2012


Author: glynn
Date: 2012-01-01 02:49:58 -0800 (Sun, 01 Jan 2012)
New Revision: 50019

Modified:
   grass/trunk/scripts/r.mask/r.mask.py
Log:
Fix r49997


Modified: grass/trunk/scripts/r.mask/r.mask.py
===================================================================
--- grass/trunk/scripts/r.mask/r.mask.py	2011-12-31 23:20:29 UTC (rev 50018)
+++ grass/trunk/scripts/r.mask/r.mask.py	2012-01-01 10:49:58 UTC (rev 50019)
@@ -64,7 +64,7 @@
     if not grass.find_file(input)['file'] and not remove:
         grass.fatal(_("<%s> does not exist.") % input)
 
-    if maskcats and not remove:
+    if maskcats != '*' and not remove:
         if grass.raster_info(input)['datatype'] != "CELL":
             grass.fatal(_("Raster map %s must be integer for maskcats parameter") % input)
 



More information about the grass-commit mailing list