fix for compat matching with one side set and one side not

git-svn-id: file:///home/svn/incoming/trunk@3343 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Matt Miller 2006-01-08 03:19:11 +00:00
parent b2d307beb2
commit 60abf5cff5
1 changed files with 1 additions and 5 deletions

View File

@ -231,12 +231,8 @@ class Module
# the ConnectionType for a stager (ws2ord, for instance).
mval = mod.module_info[k]
# Match an empty compat item only if the module does not define it
next if not (v and mval)
# Reject a filled compat item on one side, but not the other
return false if not (v and mval)
return false if (v and not mval)
# Track how many of our values matched the module
mcnt = 0