function isAllowed(pkg)
for i, pattern in pairs(allowed_dups) do
-- ugly hack: lua is bad at pattern matching
if os.execute("echo '"..pkg.."' |egrep -q '"..pattern.."'") then
if os.execute("echo '"..pkg.."' |grep -E -q '"..pattern.."'") then
return 1
end
::continue::