From 6617ffb4edd9ffcf1cd016958f70a93dc9229e15 Mon Sep 17 00:00:00 2001 From: Markus Metz <33666869+metzm@users.noreply.github.com> Date: Thu, 9 Jan 2020 20:38:09 +0100 Subject: [PATCH] Update gisinit.c re-enable the version check, it is there for a reason. TODO: adapt GIS_H_VERSION for git. The version check is working for C modules, please fix ctypes if there are problems. --- lib/gis/gisinit.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/gis/gisinit.c b/lib/gis/gisinit.c index b008073ffbc..c45a9eb1568 100644 --- a/lib/gis/gisinit.c +++ b/lib/gis/gisinit.c @@ -49,14 +49,12 @@ void G__gisinit(const char *version, const char *pgm) G_set_program_name(pgm); - /* temporary disabled since svn keywords are not maintained by git if (strcmp(version, GIS_H_VERSION) != 0) G_fatal_error(_("Module built against version %s but " "trying to use version %s. " "You need to rebuild GRASS GIS or untangle multiple installations."), version, GIS_H_VERSION); - */ - + /* Make sure location and mapset are set */ G_location_path(); mapset = G_mapset(); @@ -85,13 +83,11 @@ void G__no_gisinit(const char *version) if (initialized) return; - /* temporary disabled since svn keywords are not maintained by git if (strcmp(version, GIS_H_VERSION) != 0) G_fatal_error(_("Module built against version %s but " "trying to use version %s. " "You need to rebuild GRASS GIS or untangle multiple installations."), version, GIS_H_VERSION); - */ gisinit(); }