[Uludag-commits] r10078 - trunk/python-iptables

svn-uludag at uludag.org.tr svn-uludag at uludag.org.tr
1 Kas 2006 Çar 23:24:19 EET


Author: bahadir.kandemir
Date: Wed Nov  1 23:24:19 2006
New Revision: 10078

Modified:
   trunk/python-iptables/iptables.py
   trunk/python-iptables/setup.py
Log:
bugfix

Modified: trunk/python-iptables/iptables.py
=================================================================
--- trunk/python-iptables/iptables.py	(original)
+++ trunk/python-iptables/iptables.py	Wed Nov  1 23:24:19 2006
@@ -56,8 +56,9 @@
             if not rule.startswith('-A'):
                 continue
             chain = rule.split()[1]
-            if max(map(lambda x: fnmatch.fnmatch(chain, x), allowed_chains[table])):
-                rdict[table].append(rule)
+            if len(allowed_chains[table]):
+                if max(map(lambda x: fnmatch.fnmatch(chain, x), allowed_chains[table])):
+                    rdict[table].append(rule)
     return rdict
 
 

Modified: trunk/python-iptables/setup.py
=================================================================
--- trunk/python-iptables/setup.py	(original)
+++ trunk/python-iptables/setup.py	Wed Nov  1 23:24:19 2006
@@ -16,7 +16,7 @@
 from distutils.core import setup
 from distutils.command.install import install
 
-version = "0.1"
+version = "0.2"
 
 distfiles = """
     setup.py


Uludag-commits mesaj listesiyle ilgili daha fazla bilgi