[GRASS-SVN] r51741 - grass/branches/develbranch_6/scripts/v.db.update

svn_grass at osgeo.org svn_grass at osgeo.org
Fri May 25 09:04:09 EDT 2012


Author: neteler
Date: 2012-05-25 06:04:08 -0700 (Fri, 25 May 2012)
New Revision: 51741

Modified:
   grass/branches/develbranch_6/scripts/v.db.update/v.db.update
Log:
fix the fix; catch user error

Modified: grass/branches/develbranch_6/scripts/v.db.update/v.db.update
===================================================================
--- grass/branches/develbranch_6/scripts/v.db.update/v.db.update	2012-05-25 13:03:54 UTC (rev 51740)
+++ grass/branches/develbranch_6/scripts/v.db.update/v.db.update	2012-05-25 13:04:08 UTC (rev 51741)
@@ -116,6 +116,15 @@
       g.message -e 'Either value or qcolumn parameter have to be used'
       exit 1
    fi
+fi
+if [ ! -z "$GIS_OPT_QCOLUMN" ] ; then
+   if [ ! -z "$GIS_OPT_VALUE" ] ; then
+      g.message -e 'Either value or qcolumn parameter have to be used'
+      exit 1
+   fi
+fi
+
+if [ ! -z "$GIS_OPT_QCOLUMN" ] ; then
    # special case: we copy from another column
    value="$GIS_OPT_QCOLUMN"
 else



More information about the grass-commit mailing list