Merge pull request #757 from marineam/user

eclass: set default portage user and group
This commit is contained in:
Michael Marineau 2014-07-23 15:46:25 -07:00
commit a648c7fdbe

View File

@ -470,8 +470,8 @@ cros-workon_pkg_setup() {
if [[ ${CROS_WORKON_INCREMENTAL_BUILD} == "1" ]]; then if [[ ${CROS_WORKON_INCREMENTAL_BUILD} == "1" ]]; then
local out=$(cros-workon_get_build_dir) local out=$(cros-workon_get_build_dir)
addwrite "${out}" addwrite "${out}"
mkdir -p -m 755 "${out}" mkdir -p -m 755 "${out}" || die
chown ${PORTAGE_USERNAME}:${PORTAGE_GRPNAME} "${out}" "${out%/*}" chown ${PORTAGE_USERNAME:-portage}:${PORTAGE_GRPNAME:-portage} "${out}" "${out%/*}" || die
fi fi
} }