Przeglądaj źródła

v.unpack: fix unpacking when name of archive and the packed map differ (merge from trunk, https://trac.osgeo.org/grass/changeset/66021)

git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@66359 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 9 lat temu
rodzic
commit
1c3d3d5143
1 zmienionych plików z 3 dodań i 3 usunięć
  1. 3 3
      scripts/v.unpack/v.unpack.py

+ 3 - 3
scripts/v.unpack/v.unpack.py

@@ -97,11 +97,11 @@ def main():
 
 
     # extract data
     # extract data
     tar.extractall()
     tar.extractall()
-    if os.path.exists(os.path.join(map_name, 'coor')):
+    if os.path.exists(os.path.join(data_name, 'coor')):
         pass
         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 "
         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:
     else:
         grass.fatal(_("Pack file unreadable"))
         grass.fatal(_("Pack file unreadable"))