[Pkg-clamav-commits] [SCM] Debian repository for ClamAV branch, debian/lenny-volatile, updated. debian/0.95+dfsg-1-202-gccecc12
Stephen Gran
steve at lobefin.net
Mon Jul 6 22:18:47 UTC 2009
The following commit has been merged in the debian/lenny-volatile branch:
commit 470a9402a54704f6d09cf9c1a50893026bb9708b
Author: Stephen Gran <steve at lobefin.net>
Date: Mon Jul 6 23:17:09 2009 +0100
Add is_false(), since it is not the opposite of is_true(), sadly
Signed-off-by: Stephen Gran <steve at lobefin.net>
diff --git a/debian/common_functions b/debian/common_functions
index 0ae7f6d..9508e9b 100644
--- a/debian/common_functions
+++ b/debian/common_functions
@@ -42,6 +42,14 @@ is_true()
return $?
}
+is_false()
+{
+ var="$1"
+ lcvar=$(to_lower "$var")
+ [ 'false' = "$lcvar" ] || [ 'no' = "$lcvar" ] || [ 0 = "$lcvar" ]
+ return $?
+}
+
ucf_cleanup()
{
# This only does something if I've fucked up before
--
Debian repository for ClamAV
More information about the Pkg-clamav-commits
mailing list