[GRASS-SVN] r57119 - grass/trunk/scripts/v.pack

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Jul 14 07:32:05 PDT 2013


Author: martinl
Date: 2013-07-14 07:32:05 -0700 (Sun, 14 Jul 2013)
New Revision: 57119

Modified:
   grass/trunk/scripts/v.pack/v.pack.py
Log:
v.pack: move db and proj file to the root, preparation for packaging multiple maps

Modified: grass/trunk/scripts/v.pack/v.pack.py
===================================================================
--- grass/trunk/scripts/v.pack/v.pack.py	2013-07-14 14:12:16 UTC (rev 57118)
+++ grass/trunk/scripts/v.pack/v.pack.py	2013-07-14 14:32:05 UTC (rev 57119)
@@ -100,7 +100,7 @@
                               from_table =  dbconn['table'], 
                               to_driver = 'sqlite', to_database = sqlitedb, 
                               to_table = dbconn['table'])
-        tar.add(sqlitedb, os.path.join(infile, 'db.sqlite'))
+        tar.add(sqlitedb, 'db.sqlite')
     
     # add to the tar file the PROJ files to check when unpack file    
     gisenv = grass.gisenv()
@@ -108,7 +108,7 @@
         path = os.path.join(gisenv['GISDBASE'], gisenv['LOCATION_NAME'],
                             'PERMANENT', 'PROJ_' + support)
         if os.path.exists(path):
-            tar.add(path, os.path.join(infile, 'PROJ_' + support))
+            tar.add(path, 'PROJ_' + support)
     tar.close()
     
     grass.message(_("Pack file <%s> created") % os.path.join(os.getcwd(), outfile))



More information about the grass-commit mailing list