From: Michał Górny Date: Wed, 15 Aug 2018 08:50:14 +0000 (+0200) Subject: dev-lang/python-exec: Use newins with stdin input X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=3bc189a622fad9db820eafbf1b0a7b422abdc185;p=gentoo.git dev-lang/python-exec: Use newins with stdin input --- diff --git a/dev-lang/python-exec/python-exec-2.4.6.ebuild b/dev-lang/python-exec/python-exec-2.4.6.ebuild index 9ed5ee58b776..e888b5fef3b1 100644 --- a/dev-lang/python-exec/python-exec-2.4.6.ebuild +++ b/dev-lang/python-exec/python-exec-2.4.6.ebuild @@ -48,10 +48,9 @@ src_install() { default # Prepare and own the template - sed -n -e '/^#/p' config/python-exec.conf.example \ - > "${T}"/python-exec.conf || die insinto /etc/python-exec - doins "${T}"/python-exec.conf + newins - python-exec.conf \ + < <(sed -n -e '/^#/p' config/python-exec.conf.example) local f for f in python{,2,3}; do diff --git a/dev-lang/python-exec/python-exec-9999.ebuild b/dev-lang/python-exec/python-exec-9999.ebuild index 6fc81aeeefa9..c0f5a62b4d0b 100644 --- a/dev-lang/python-exec/python-exec-9999.ebuild +++ b/dev-lang/python-exec/python-exec-9999.ebuild @@ -54,10 +54,9 @@ src_install() { default # Prepare and own the template - sed -n -e '/^#/p' config/python-exec.conf.example \ - > "${T}"/python-exec.conf || die insinto /etc/python-exec - doins "${T}"/python-exec.conf + newins - python-exec.conf \ + < <(sed -n -e '/^#/p' config/python-exec.conf.example) local f for f in python{,2,3}; do