]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Why does getcache return "true" or undef?! Now returns 1 or 0. Thanks stskeeps
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Sat, 21 Jul 2007 13:01:12 +0000 (13:01 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Sat, 21 Jul 2007 13:01:12 +0000 (13:01 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7482 e03df62e-2008-0410-955e-edbf42e46eb7

configure

index db6602bae90aada74bf1d88a03d457f8a5fa6219..67e5b7aab44bd327b29653cfeea35375ed3bd7ad 100755 (executable)
--- a/configure
+++ b/configure
@@ -397,7 +397,7 @@ sub svnupdate
 
 print "Running non-interactive configure...\n" unless $interactive;
 print "Checking for cache from previous configure... ";
-print ((getcache() eq "true") ? "found\n" : "not found\n");
+print ((!getcache()) ? "not found\n" : "found\n");
 print "Checking operating system version... ";
 print getosflags() . "\n";
 
@@ -840,7 +840,7 @@ FOO2
 ################################################################################
 sub getcache {
        # Retrieves the .config.cache file, and loads values into the main config hash.
-       open(CACHE, ".config.cache") or return undef;
+       open(CACHE, ".config.cache") or return 0;
        while (<CACHE>) {
                chomp;
                # Ignore Blank lines, and comments..
@@ -852,7 +852,7 @@ sub getcache {
                $config{$key} = $1;
        }
        close(CONFIG);
-       return "true";
+       return 1;
 }
 
 sub makecache {