setup_pkgmgr(): Make the 'build' use flag passed in