[GRASS-SVN] r66021 - grass/trunk/scripts/v.unpack

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Aug 25 18:54:03 PDT 2015


Author: annakrat
Date: 2015-08-25 18:54:03 -0700 (Tue, 25 Aug 2015)
New Revision: 66021

Modified:
   grass/trunk/scripts/v.unpack/v.unpack.py
Log:
v.unpack: fix unpacking when name of archive and the packed map differ

Modified: grass/trunk/scripts/v.unpack/v.unpack.py
===================================================================
--- grass/trunk/scripts/v.unpack/v.unpack.py	2015-08-26 01:06:06 UTC (rev 66020)
+++ grass/trunk/scripts/v.unpack/v.unpack.py	2015-08-26 01:54:03 UTC (rev 66021)
@@ -98,11 +98,11 @@
 
     # extract data
     tar.extractall()
-    if os.path.exists(os.path.join(map_name, 'coor')):
+    if os.path.exists(os.path.join(data_name, 'coor')):
         pass
-    elif os.path.exists(os.path.join(map_name, 'cell')):
+    elif os.path.exists(os.path.join(data_name, 'cell')):
         grass.fatal(_("This GRASS GIS pack file contains raster data. Use "
-                      "r.unpack to unpack <%s>" % map_name))
+                      "v.unpack to unpack <%s>" % map_name))
     else:
         grass.fatal(_("Pack file unreadable"))
 



More information about the grass-commit mailing list