diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-11-15 02:23:43 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-11-15 02:23:43 +0000 |
commit | f18540f507de4b434c0dfccbcea747654c32b431 (patch) | |
tree | 74217d628380712cbae387ffc27ad1ecd9138850 /bin/newlib.a | |
parent | Make the EbuildQuote check filter out matches that appear to be an argument (diff) | |
download | portage-multirepo-f18540f507de4b434c0dfccbcea747654c32b431.tar.gz portage-multirepo-f18540f507de4b434c0dfccbcea747654c32b431.tar.bz2 portage-multirepo-f18540f507de4b434c0dfccbcea747654c32b431.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.
svn path=/main/trunk/; revision=11916
Diffstat (limited to 'bin/newlib.a')
-rwxr-xr-x | bin/newlib.a | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/newlib.a b/bin/newlib.a index 008aca96..ddcb1af2 100755 --- a/bin/newlib.a +++ b/bin/newlib.a @@ -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 dolib.a "${T}/${2}" |