Commit 35b34c15 authored by Duncan Coutts's avatar Duncan Coutts
Browse files

Allow '_' char in buld tool names

eg we have build-tools like "pg_config"
parent 60c773d1
...@@ -521,7 +521,10 @@ parseBuildToolName :: ReadP r String ...@@ -521,7 +521,10 @@ parseBuildToolName :: ReadP r String
parseBuildToolName = do ns <- sepBy1 component (ReadP.char '-') parseBuildToolName = do ns <- sepBy1 component (ReadP.char '-')
return (intercalate "-" ns) return (intercalate "-" ns)
where component = do where component = do
cs <- munch1 (\c -> isAlphaNum c || isSymbol c && c /= '-') cs <- munch1 (\c -> isAlphaNum c
|| isSymbol c
|| c == '_'
&& c /= '-')
if all isDigit cs then pfail else return cs if all isDigit cs then pfail else return cs
-- pkg-config allows versions and other letters in package names, -- pkg-config allows versions and other letters in package names,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment