summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-04-16 01:17:42 +0000
committerZac Medico <zmedico@gentoo.org>2006-04-16 01:17:42 +0000
commit33ee53c63ee6320df758a74a9f88a3dbb99bf0fb (patch)
treea59e65b2b346ff4fba1474de8475713c38fbeb9f /bin/misc-functions.sh
parentOverride LazyItemsDict.update() so that it works correctly with other instanc... (diff)
downloadportage-multirepo-33ee53c63ee6320df758a74a9f88a3dbb99bf0fb.tar.gz
portage-multirepo-33ee53c63ee6320df758a74a9f88a3dbb99bf0fb.tar.bz2
portage-multirepo-33ee53c63ee6320df758a74a9f88a3dbb99bf0fb.zip
Make find arguments portable for bug #129935 and remove temp file usage for bug #121368.
svn path=/main/trunk/; revision=3160
Diffstat (limited to 'bin/misc-functions.sh')
-rw-r--r--bin/misc-functions.sh14
1 files changed, 2 insertions, 12 deletions
diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh
index 67d6bdcc..d3c8ce16 100644
--- a/bin/misc-functions.sh
+++ b/bin/misc-functions.sh
@@ -184,26 +184,16 @@ install_qa_check() {
unset INSTALLTOD
fi
- local file="${T}/find-portage-log"
local count=$(find "${D}"/ -user portage | wc -l)
if [[ ${count} -gt 0 ]] ; then
ewarn "${count} files were installed with user portage!"
- find "${D}"/ -xtype l -user portage -print0 > "${file}"
- [[ -s ${file} ]] && cat "${file}" | xargs -0 chown -h ${PORTAGE_INST_UID:-0}
- find "${D}"/ -user portage -print0 > "${file}"
- [[ -s ${file} ]] && cat "${file}" | xargs -0 chown ${PORTAGE_INST_UID:-0}
- rm -f "${file}"
+ find "${D}"/ -user portage -print0 | xargs -0 chown -h ${PORTAGE_INST_UID:-0}
fi
count=$(find "${D}"/ -group portage | wc -l)
if [[ ${count} -gt 0 ]] ; then
ewarn "${count} files were installed with group portage!"
-
- find "${D}"/ -xtype l -group portage -print0 > "${file}"
- [[ -s ${file} ]] && cat "${file}" | xargs -0 chgrp -h ${PORTAGE_INST_GID:-0}
- find "${D}"/ -group portage -print0 > "${file}"
- [[ -s ${file} ]] && cat "${file}" | xargs -0 chgrp ${PORTAGE_INST_GID:-0}
- rm -f "${file}"
+ find "${D}"/ -group portage -print0 | xargs -0 chgrp -h ${PORTAGE_INST_GID:-0}
fi
# Portage regenerates this on the installed system.