Dubbo police arrested a man who allegedly had hidden a machete in his his pants