From 0ba0a278b9fab1bdabae555c7da35af2b67b2a82 Mon Sep 17 00:00:00 2001 From: curt Date: Fri, 7 Jun 2002 23:26:07 +0000 Subject: [PATCH] Patch from Norman to do the code/base version comparison check a little more sensibly (and print the correct error message.) --- src/Main/main.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Main/main.cxx b/src/Main/main.cxx index 68c1237b4..4c0a44d6c 100644 --- a/src/Main/main.cxx +++ b/src/Main/main.cxx @@ -1419,15 +1419,17 @@ int mainLoop( int argc, char **argv ) { fgInitFGRoot(argc, argv); // Check for the correct base package version + static char required_version[] = "0.7.11pre1"; string base_version = fgBasePackageVersion(); - if ( !(base_version == "0.7.11pre1") ) { + if ( !(base_version == required_version) ) { // tell the operator how to use this application fgUsage(); SG_LOG( SG_GENERAL, SG_ALERT, "Base package check failed ... " << "Found version " << base_version << " at: " << globals->get_fg_root() ); - SG_LOG( SG_GENERAL, SG_ALERT, "Please upgrade to version 0.7.9" ); + SG_LOG( SG_GENERAL, SG_ALERT, "Please upgrade to version" + << required_version); exit(-1); } -- 2.39.5