commit:     fc0377a0bee8c25243f549bf015cd5d33668e5f6
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Feb  6 09:38:30 2016 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Feb  6 09:57:35 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fc0377a0

dev-lang/python-exec: Silence the migration output for initial install

 dev-lang/python-exec/python-exec-2.9999.ebuild | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/dev-lang/python-exec/python-exec-2.9999.ebuild 
b/dev-lang/python-exec/python-exec-2.9999.ebuild
index 81e3193..14940d0 100644
--- a/dev-lang/python-exec/python-exec-2.9999.ebuild
+++ b/dev-lang/python-exec/python-exec-2.9999.ebuild
@@ -116,10 +116,12 @@ pkg_preinst() {
                        fi
                done
 
-               einfo "Keeping the following Python preference: 
${old_pythons[*]}"
+               if [[ ${old_pythons[@]} ]]; then
+                       einfo "Keeping the following Python preference: 
${old_pythons[*]}"
 
-               local IFS=$'\n'
-               echo "${old_pythons[*]}" \
-                       >> "${ED}"etc/python-exec/python-exec.conf || die
+                       local IFS=$'\n'
+                       echo "${old_pythons[*]}" \
+                               >> "${ED}"etc/python-exec/python-exec.conf || 
die
+               fi
        fi
 }

Reply via email to