[Gridflow-cvs] [svn] commit: r6262 - /trunk/configure

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Tue Sep 14 15:02:50 EDT 2010


Author: matju
Date: Tue Sep 14 15:02:44 2010
New Revision: 6262

Log:
remove misleading line in case of nonexistent --no-* or --force-*

Modified:
    trunk/configure

Modified: trunk/configure
==============================================================================
--- trunk/configure (original)
+++ trunk/configure Tue Sep 14 15:02:44 2010
@@ -592,14 +592,20 @@
 		ARGV.unshift arg[0..i-1], arg[i+1..-1]
 	when /^--no-/
 		name = arg[5..-1].untaint.intern
-		puts "there is no feature called #{name}" if not $features_h[name]
-		puts "--no: won't check for feature #{name}"
-		$features_h.delete name
+		if $features_h[name] then 
+			puts "--no: won't check for feature #{name}"
+			$features_h.delete name
+		else
+			puts "there is no feature called #{name}"
+		end
 	when /^--force-/
 		name = arg[8..-1].untaint.intern
-		puts "there is no feature called #{name}" if not $features_h[name]
-		puts "--force: assuming #{name} is there"
-		$features_h[name].test nil
+		if $features_h[name] then 
+			puts "--force: assuming #{name} is there"
+			$features_h[name].test nil
+		else
+			puts "there is no feature called #{name}"
+		end
 	when "--debug"
 		puts "Debug Mode (more error checking; less speed)"
 		$debug=true



More information about the Gridflow-cvs mailing list