Lines 184-209
Link Here
|
184 |
unset INSTALLTOD |
184 |
unset INSTALLTOD |
185 |
fi |
185 |
fi |
186 |
|
186 |
|
187 |
local file="${T}/find-portage-log" |
|
|
188 |
local count=$(find "${D}"/ -user portage | wc -l) |
187 |
local count=$(find "${D}"/ -user portage | wc -l) |
189 |
if [[ ${count} -gt 0 ]] ; then |
188 |
if [[ ${count} -gt 0 ]] ; then |
190 |
ewarn "${count} files were installed with user portage!" |
189 |
ewarn "${count} files were installed with user portage!" |
191 |
find "${D}"/ -xtype l -user portage -print0 > "${file}" |
190 |
find "${D}"/ -user portage -exec chown -h ${PORTAGE_INST_UID:-0} '{}' \; |
192 |
[[ -s ${file} ]] && cat "${file}" | xargs -0 chown -h ${PORTAGE_INST_UID:-0} |
|
|
193 |
find "${D}"/ -user portage -print0 > "${file}" |
194 |
[[ -s ${file} ]] && cat "${file}" | xargs -0 chown ${PORTAGE_INST_UID:-0} |
195 |
rm -f "${file}" |
196 |
fi |
191 |
fi |
197 |
|
192 |
|
198 |
count=$(find "${D}"/ -group portage | wc -l) |
193 |
count=$(find "${D}"/ -group portage | wc -l) |
199 |
if [[ ${count} -gt 0 ]] ; then |
194 |
if [[ ${count} -gt 0 ]] ; then |
200 |
ewarn "${count} files were installed with group portage!" |
195 |
ewarn "${count} files were installed with group portage!" |
201 |
|
196 |
find "${D}"/ -group portage -exec chgrp -h ${PORTAGE_INST_GID:-0} '{}' \; |
202 |
find "${D}"/ -xtype l -group portage -print0 > "${file}" |
|
|
203 |
[[ -s ${file} ]] && cat "${file}" | xargs -0 chgrp -h ${PORTAGE_INST_GID:-0} |
204 |
find "${D}"/ -group portage -print0 > "${file}" |
205 |
[[ -s ${file} ]] && cat "${file}" | xargs -0 chgrp ${PORTAGE_INST_GID:-0} |
206 |
rm -f "${file}" |
207 |
fi |
197 |
fi |
208 |
|
198 |
|
209 |
# Portage regenerates this on the installed system. |
199 |
# Portage regenerates this on the installed system. |