Gentoo Archives: gentoo-commits

From: Zac Medico <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/portage:master commit in: bin/
Date: Tue, 30 Apr 2013 05:07:36
Message-Id: 1367298400.2d5e38b495776e5bb2266848a3365667f3ca7233.zmedico@gentoo
1 commit: 2d5e38b495776e5bb2266848a3365667f3ca7233
2 Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
3 AuthorDate: Tue Apr 30 05:06:40 2013 +0000
4 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
5 CommitDate: Tue Apr 30 05:06:40 2013 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=2d5e38b4
7
8 bin/misc-functions.sh: use pipe for find ${D}${D}
9
10 ---
11 bin/misc-functions.sh | 7 +++----
12 1 files changed, 3 insertions(+), 4 deletions(-)
13
14 diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh
15 index 17dea4e..725ba55 100755
16 --- a/bin/misc-functions.sh
17 +++ b/bin/misc-functions.sh
18 @@ -537,13 +537,12 @@ install_qa_check() {
19 fi
20
21 if [[ -d ${D%/}${D} ]] ; then
22 - declare -i INSTALLTOD=0
23 - for i in $(find "${D%/}${D}"); do
24 + local -i INSTALLTOD=0
25 + while read -r -d $'\0' i ; do
26 eqawarn "QA Notice: /${i##${D%/}${D}} installed in \${D}/\${D}"
27 ((INSTALLTOD++))
28 - done
29 + done < <(find "${D%/}${D}" -print0)
30 die "Aborting due to QA concerns: ${INSTALLTOD} files installed in ${D%/}${D}"
31 - unset INSTALLTOD
32 fi
33
34 # Sanity check syntax errors in init.d scripts