浏览代码

Glynn: don't try to run r.support if the map is in another mapset

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@48128 15284696-431f-4ddb-bdfa-cd5b030d7da7
Hamish Bowman 13 年之前
父节点
当前提交
8093436933
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      scripts/i.landsat.rgb/i.landsat.rgb.py

+ 3 - 1
scripts/i.landsat.rgb/i.landsat.rgb.py

@@ -124,8 +124,10 @@ def main():
 	    set_colors(i, v0, v1)
 
     # write cmd history:
+    mapset = grass.gisenv()['MAPSET']
     for i in [red, green, blue]:
-	grass.raster_history(i)
+        if grass.find_file(i)['mapset'] == mapset:
+            grass.raster_history(i)
 
 if __name__ == "__main__":
     options, flags = grass.parser()