summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-03-25 01:23:04 +0000
committerZac Medico <zmedico@gentoo.org>2009-03-25 01:23:04 +0000
commitf8127b9110ae0b3ac4660284c291c803ce8df992 (patch)
tree1cd269fafe4f563a9ccd50ae8aebf7975e48eff6 /bin/ebuild-helpers
parentRemove unused tar_opts variable inside unpack(). Thanks to zong_sharo for (diff)
downloadportage-idfetch-f8127b9110ae0b3ac4660284c291c803ce8df992.tar.gz
portage-idfetch-f8127b9110ae0b3ac4660284c291c803ce8df992.tar.bz2
portage-idfetch-f8127b9110ae0b3ac4660284c291c803ce8df992.zip
Fix domo and doexe to return non-zero if there are any errors. Thanks to
zong_sharo for reporting. svn path=/main/trunk/; revision=13182
Diffstat (limited to 'bin/ebuild-helpers')
-rwxr-xr-xbin/ebuild-helpers/doexe9
-rwxr-xr-xbin/ebuild-helpers/domo6
2 files changed, 14 insertions, 1 deletions
diff --git a/bin/ebuild-helpers/doexe b/bin/ebuild-helpers/doexe
index 36880477..9d35c8e0 100755
--- a/bin/ebuild-helpers/doexe
+++ b/bin/ebuild-helpers/doexe
@@ -14,6 +14,8 @@ if [[ ! -d ${D}${_E_EXEDESTTREE_} ]] ; then
install -d "${D}${_E_EXEDESTTREE_}"
fi
+ret=0
+
for x in "$@" ; do
if [ -L "${x}" ] ; then
cp "${x}" "${T}"
@@ -24,6 +26,11 @@ for x in "$@" ; do
else
mysrc="${x}"
fi
- install $EXEOPTIONS "$mysrc" "$D$_E_EXEDESTTREE_" || \
+ if ! install $EXEOPTIONS "$mysrc" "$D$_E_EXEDESTTREE_" ; then
echo "!!! ${0##*/}: $mysrc does not exist" 1>&2
+ false
+ fi
+ ((ret+=$?))
done
+
+exit $ret
diff --git a/bin/ebuild-helpers/domo b/bin/ebuild-helpers/domo
index a7ba5775..f2ad3eae 100755
--- a/bin/ebuild-helpers/domo
+++ b/bin/ebuild-helpers/domo
@@ -12,6 +12,8 @@ if [ ! -d "${D}${DESTTREE}/share/locale" ] ; then
install -d "${D}${DESTTREE}/share/locale/"
fi
+ret=0
+
for x in "$@" ; do
if [ -e "${x}" ] ; then
mytiny="${x##*/}"
@@ -22,5 +24,9 @@ for x in "$@" ; do
install -m0644 "${x}" "${mydir}/${MOPREFIX}.mo"
else
echo "!!! ${0##*/}: $x does not exist" 1>&2
+ false
fi
+ ((ret+=$?))
done
+
+exit $ret