Gentoo Archives: gentoo-commits

From: Zac Medico <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/portage:2.1.9 commit in: bin/ebuild-helpers/, bin/ebuild-helpers/4/
Date: Tue, 01 Mar 2011 21:03:23
Message-Id: 31d69b9b8711dbc0f411637959d999e94dc0e02b.zmedico@gentoo
1 commit: 31d69b9b8711dbc0f411637959d999e94dc0e02b
2 Author: Ulrich Mueller <ulm <AT> gentoo <DOT> org>
3 AuthorDate: Fri Feb 25 07:43:17 2011 +0000
4 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
5 CommitDate: Tue Mar 1 20:51:31 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=31d69b9b
7
8 dodoc: Honour exit status of install, bug 356389.
9
10 ---
11 bin/ebuild-helpers/4/dodoc | 4 +++-
12 bin/ebuild-helpers/dodoc | 6 ++++--
13 2 files changed, 7 insertions(+), 3 deletions(-)
14
15 diff --git a/bin/ebuild-helpers/4/dodoc b/bin/ebuild-helpers/4/dodoc
16 index d32343c..66a1f08 100755
17 --- a/bin/ebuild-helpers/4/dodoc
18 +++ b/bin/ebuild-helpers/4/dodoc
19 @@ -27,6 +27,8 @@ for x in "$@" ; do
20
21 if [ -d "${x}" ] ; then
22 if [[ ${DOINSRECUR} == "n" ]] ; then
23 + echo "!!! ${0##*/}: $x is a directory" 1>&2
24 + ((ret|=1))
25 continue
26 fi
27
28 @@ -36,7 +38,7 @@ for x in "$@" ; do
29 ${0} -r {} \;
30
31 elif [ -s "${x}" ] ; then
32 - install -m0644 "${x}" "${dir}"
33 + install -m0644 "${x}" "${dir}" || ((ret|=1))
34 elif [ ! -e "${x}" ] ; then
35 echo "!!! ${0##*/}: $x does not exist" 1>&2
36 ((ret|=1))
37
38 diff --git a/bin/ebuild-helpers/dodoc b/bin/ebuild-helpers/dodoc
39 index 29b6901..67391a8 100755
40 --- a/bin/ebuild-helpers/dodoc
41 +++ b/bin/ebuild-helpers/dodoc
42 @@ -16,8 +16,10 @@ fi
43
44 ret=0
45 for x in "$@" ; do
46 - if [ -s "${x}" ] ; then
47 - install -m0644 "${x}" "${dir}"
48 + if [ -d "${x}" ] ; then
49 + eqawarn "QA Notice: dodoc argument '${x}' is a directory"
50 + elif [ -s "${x}" ] ; then
51 + install -m0644 "${x}" "${dir}" || { ((ret|=1)); continue; }
52 ecompress --queue "${dir}/${x##*/}"
53 elif [ ! -e "${x}" ] ; then
54 echo "!!! ${0##*/}: $x does not exist" 1>&2