[Pkg-clamav-commits] [SCM] Debian repository for ClamAV branch, debian/unstable, updated. debian/0.95+dfsg-1-194-g4707233

Stephen Gran steve at lobefin.net
Mon Jul 6 22:18:49 UTC 2009


The following commit has been merged in the debian/unstable branch:
commit 3c30b987a76ea42ac3f24da1b4b2371fd70ae103
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