From 3bc189a622fad9db820eafbf1b0a7b422abdc185 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20G=C3=B3rny?= Date: Wed, 15 Aug 2018 10:50:14 +0200 Subject: [PATCH] dev-lang/python-exec: Use newins with stdin input --- dev-lang/python-exec/python-exec-2.4.6.ebuild | 5 ++--- dev-lang/python-exec/python-exec-9999.ebuild | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) 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 -- 2.26.2