[GRASS-SVN] r44517 - grass/trunk/scripts/v.krige
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Dec 2 06:16:35 EST 2010
Author: martinl
Date: 2010-12-02 03:16:35 -0800 (Thu, 02 Dec 2010)
New Revision: 44517
Modified:
grass/trunk/scripts/v.krige/v.krige.py
Log:
v.krige: fix error message (missing R packages)
Modified: grass/trunk/scripts/v.krige/v.krige.py
===================================================================
--- grass/trunk/scripts/v.krige/v.krige.py 2010-12-02 11:10:28 UTC (rev 44516)
+++ grass/trunk/scripts/v.krige/v.krige.py 2010-12-02 11:16:35 UTC (rev 44517)
@@ -410,8 +410,8 @@
if not robjects.r.require(each, quietly = True)[0]:
missingPackagesList.append(each)
if missingPackagesList:
- errorString = "R package(s) " + " ".join(["%s" % e for e in missingPackagesList] + "missing. Install it/them and re-run v.krige.")
- grass.fatal(_(errorString))
+ errorString = _("R package(s) ") + ", ".join(map(str, missingPackagesList)) + _(" missing. Install it/them and re-run v.krige.")
+ grass.fatal(errorString)
if __name__ == '__main__':
if len(sys.argv) > 1:
More information about the grass-commit
mailing list