From 76a94d8f0278eeddf692850918526df84a73429c Mon Sep 17 00:00:00 2001 From: curt Date: Mon, 16 Jul 2001 19:37:13 +0000 Subject: [PATCH] Tweaks to base version check code. --- src/Main/fg_init.cxx | 4 ++-- src/Main/main.cxx | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Main/fg_init.cxx b/src/Main/fg_init.cxx index 58fa1f1b5..699765c32 100644 --- a/src/Main/fg_init.cxx +++ b/src/Main/fg_init.cxx @@ -192,9 +192,9 @@ string fgBasePackageVersion() { old_path.append( "Thanks" ); sg_gzifstream old( old_path.str() ); if ( !old.is_open() ) { - return "[none found]"; + return "[none]"; } else { - return "[old version, please upgrade]"; + return "[old version]"; } } diff --git a/src/Main/main.cxx b/src/Main/main.cxx index 1122fb2e1..6f3c3bb39 100644 --- a/src/Main/main.cxx +++ b/src/Main/main.cxx @@ -1485,7 +1485,8 @@ int main( int argc, char **argv ) { string base_version = fgBasePackageVersion(); if ( !(base_version == "0.7.9") ) { SG_LOG( SG_GENERAL, SG_ALERT, "Base package check failed ... " - << base_version); + << "Found version " << base_version ); + SG_LOG( SG_GENERAL, SG_ALERT, "Please upgrade to version 0.7.9" ); exit(-1); } -- 2.39.2