diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-11-15 02:25:05 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-11-15 02:25:05 +0000 |
commit | 22532ec8c8a030d4d513947a2ad12e0eab5e61cd (patch) | |
tree | 73560dd0f61931f4492942c450075c78582e29dd /bin/newconfd | |
parent | f2c053b8516155d9e4b1e866e67c0c24c0702573 (diff) | |
download | portage-22532ec8c8a030d4d513947a2ad12e0eab5e61cd.tar.gz portage-22532ec8c8a030d4d513947a2ad12e0eab5e61cd.tar.bz2 portage-22532ec8c8a030d4d513947a2ad12e0eab5e61cd.zip |
Fix new* and do* ebuild helpers to generate consistent error messages for
missing files and generate an appropriate QA Notice when such an error is
detected in the build log. Thanks to Diego 'Flameeyes' Pettenò <flameeyes@g.o>
for the suggestion. (trunk r11916)
svn path=/main/branches/2.1.6/; revision=11917
Diffstat (limited to 'bin/newconfd')
-rwxr-xr-x | bin/newconfd | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/newconfd b/bin/newconfd index 4b1e8e7b3..6d57a343c 100755 --- a/bin/newconfd +++ b/bin/newconfd @@ -8,6 +8,11 @@ if [[ -z ${T} ]] || [[ -z ${2} ]] ; then exit 1 fi +if [ ! -e "$1" ] ; then + echo "!!! ${0##*/}: $1 does not exist" 1>&2 + exit 1 +fi + rm -rf "${T}/${2}" && \ cp -f "${1}" "${T}/${2}" && \ exec doconfd "${T}/${2}" |