diff options
author | Ulrich Mueller <ulm@gentoo.org> | 2011-01-02 17:28:48 +0100 |
---|---|---|
committer | Ulrich Mueller <ulm@gentoo.org> | 2011-01-02 17:31:23 +0100 |
commit | d5c737ab92c774cd5c754375a0e93d9783a9f8b6 (patch) | |
tree | 85ca175a1a1e8261abe68a3b97c08f96842004c5 | |
parent | 1b1376e22b07926d29ef186229dad2ff78d8f488 (diff) | |
download | portage-d5c737ab92c774cd5c754375a0e93d9783a9f8b6.tar.gz portage-d5c737ab92c774cd5c754375a0e93d9783a9f8b6.tar.bz2 portage-d5c737ab92c774cd5c754375a0e93d9783a9f8b6.zip |
newins in EAPI 4 should actually install the file. Fixes bug 350385.
-rwxr-xr-x | bin/ebuild-helpers/newins | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/ebuild-helpers/newins b/bin/ebuild-helpers/newins index 9da212fb5..065477f47 100755 --- a/bin/ebuild-helpers/newins +++ b/bin/ebuild-helpers/newins @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright 1999-2010 Gentoo Foundation +# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 source "${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"/isolated-functions.sh @@ -22,8 +22,10 @@ case "$EAPI" in *) cp -P "$1" "$T/$2" ret=$? - [[ $ret -ne 0 ]] && helpers_die "${0##*/} failed" - exit $ret + if [[ $ret -ne 0 ]] ; then + helpers_die "${0##*/} failed" + exit $ret + fi ;; esac doins "${T}/${2}" |