Use PORTAGE_{USER,GROUP} instead of hardcoded references to portage user/group, patch...
authorEmanuele Giaquinta <exg@gentoo.org>
Wed, 30 Aug 2006 16:29:33 +0000 (16:29 -0000)
committerEmanuele Giaquinta <exg@gentoo.org>
Wed, 30 Aug 2006 16:29:33 +0000 (16:29 -0000)
svn path=/main/branches/prefix/; revision=4376

bin/misc-functions.sh

index bd9fd40157d3508746f5ace7294a285803a2059a..03d008e0a13b4d05e2bec04ff62879d80d7aefeb 100644 (file)
@@ -183,11 +183,11 @@ install_qa_check() {
        fi
 
        local find_log="${T}/find-portage-log"
-       find "${D}"/ -user portage -print0 > "${find_log}"
+       find "${D}"/ -user ${PORTAGE_USER:-portage} -print0 > "${find_log}"
        if [[ -s ${find_log} ]] ; then
                xargs -0 chown -h ${PORTAGE_INST_UID:-0} < "${find_log}"
        fi
-       find "${D}"/ -group portage -print0 > "${find_log}"
+       find "${D}"/ -group ${PORTAGE_GROUP:-portage} -print0 > "${find_log}"
        if [[ -s ${find_log} ]] ; then
                xargs -0 chgrp -h ${PORTAGE_INST_GID:-0} < "${find_log}"
        fi