Skip to content

Commit

Permalink
Update gisinit.c
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
metzm committed Jan 9, 2020
1 parent 77c77f4 commit 6617ffb
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/gis/gisinit.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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();
}

Expand Down

0 comments on commit 6617ffb

Please sign in to comment.