[GRASS-SVN] r55564 - grass/trunk/scripts/v.pack
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Mar 27 14:18:12 PDT 2013
Author: martinl
Date: 2013-03-27 14:18:11 -0700 (Wed, 27 Mar 2013)
New Revision: 55564
Modified:
grass/trunk/scripts/v.pack/v.pack.py
Log:
v.pack: message cosmetics
Modified: grass/trunk/scripts/v.pack/v.pack.py
===================================================================
--- grass/trunk/scripts/v.pack/v.pack.py 2013-03-27 21:14:41 UTC (rev 55563)
+++ grass/trunk/scripts/v.pack/v.pack.py 2013-03-27 21:18:11 UTC (rev 55564)
@@ -65,7 +65,7 @@
grass.try_remove(outfile)
else:
grass.fatal(_("option <output>: <%s> exists.") % outfile)
- grass.message(_("Packing <%s> to <%s>...") % (gfile['fullname'], outfile))
+ grass.verbose(_("Packing <%s>...") % (gfile['fullname']))
basedir = os.path.sep.join(gfile['file'].split(os.path.sep)[:-2])
olddir = os.getcwd()
#check if exist a db connection for the vector
@@ -74,7 +74,7 @@
#db not exist and skip the db copy
sqlitedb = None
if not db_vect:
- grass.message(_('There is not database connected with vector %s') % gfile['fullname'])
+ grass.verbose(_('There is not database connected with vector map <%s>') % gfile['fullname'])
else:
# for each layer connection save a table
for i, dbconn in db_vect.iteritems():
@@ -101,7 +101,7 @@
#remove the db from the vector directory #ONLY THE DB FOR THE COPY NOT DB OF GRASS
if db_vect and sqlitedb:
os.remove(sqlitedb)
- grass.verbose(_("Vector map saved to '%s'" % os.path.join(olddir, outfile)))
+ grass.message(_("Pack file <%s> created") % os.path.join(olddir, outfile))
if __name__ == "__main__":
options, flags = grass.parser()
More information about the grass-commit
mailing list