浏览代码

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 年之前
父节点
当前提交
1c3d3d5143
共有 1 个文件被更改,包括 3 次插入3 次删除
  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
     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"))