UVL: Fixed dependency parsing
authorSteven Barth <steven@midlink.org>
Wed, 10 Sep 2008 23:16:36 +0000 (23:16 +0000)
committerSteven Barth <steven@midlink.org>
Wed, 10 Sep 2008 23:16:36 +0000 (23:16 +0000)
libs/uvl/luasrc/uvl.lua

index 52531be32d9f9bd85ec6b5883013eae2cc1c652b..9cdb9948dca4f0529bb037a9f35b921096f57de6 100644 (file)
@@ -669,7 +669,7 @@ function UVL._read_dependency( self, values, deps )
                for _, value in ipairs(values) do
                        local condition = { }
                        for val in value:gmatch("[^%s,]+") do
-                               local k, v = val:match("([^%s]+)%s*=*%s*([^%s]*)")
+                               local k, v = val:match("([^%s=]+)%s*=*%s*([^%s]*)")
 
                                if k and (
                                        k:match("^"..expr.."%."..expr.."%."..expr.."$") or