[GRASS-SVN] r71111 - grass-addons/grass7/raster/r.modis/r.modis.download

svn_grass at osgeo.org svn_grass at osgeo.org
Tue May 23 01:14:10 PDT 2017


Author: lucadelu
Date: 2017-05-23 01:14:10 -0700 (Tue, 23 May 2017)
New Revision: 71111

Modified:
   grass-addons/grass7/raster/r.modis/r.modis.download/r.modis.download.py
Log:
r.modis.download: fixed output string

Modified: grass-addons/grass7/raster/r.modis/r.modis.download/r.modis.download.py
===================================================================
--- grass-addons/grass7/raster/r.modis/r.modis.download/r.modis.download.py	2017-05-22 22:05:27 UTC (rev 71110)
+++ grass-addons/grass7/raster/r.modis/r.modis.download/r.modis.download.py	2017-05-23 08:14:10 UTC (rev 71111)
@@ -245,11 +245,10 @@
             modisOgg.downloadsAllDay()
             filesize = int(os.path.getsize(modisOgg.filelist.name))
             if flags['g'] and filesize != 0:
-                grass.message("filename=%s" % modisOgg.filelist.name)
-            elif flags['g'] and filesize == 0:
-                grass.message("filename=")
-            elif not flags['g'] and filesize == 0:
-                grass.message(_("All data have been previously downloaded"))
+                grass.message("files=%s" % modisOgg.filelist.name)
+            elif filesize == 0:
+                grass.message(_("No data download, probably they have been "
+                                "previously downloaded"))
             elif filesize != 0:
                 grass.message(_("All data have been downloaded, continue "
                                 "with r.modis.import with the option "



More information about the grass-commit mailing list