summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-07-21 13:01:12 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-07-21 13:01:12 +0000
commitd6c34d9250153470367b74abcf42ad4db12fc217 (patch)
treed22bb0e5120002fa276df9499eb9fa5ba7248b95
parentcaf483b5d1fbf768151b77f155f452909756a7a2 (diff)
Why does getcache return "true" or undef?! Now returns 1 or 0. Thanks stskeeps
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7482 e03df62e-2008-0410-955e-edbf42e46eb7
-rwxr-xr-xconfigure6
1 files changed, 3 insertions, 3 deletions
diff --git a/configure b/configure
index db6602bae..67e5b7aab 100755
--- 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 {