Explorar o código

v.pack: message cosmetics

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@55564 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa %!s(int64=12) %!d(string=hai) anos
pai
achega
cb07714e83
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      scripts/v.pack/v.pack.py

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

@@ -65,7 +65,7 @@ def main():
             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 @@ def main():
     #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 @@ def main():
     #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()