dev-lang/python-exec: Silence the migration output for initial install
authorMichał Górny <mgorny@gentoo.org>
Sat, 6 Feb 2016 09:38:30 +0000 (10:38 +0100)
committerMichał Górny <mgorny@gentoo.org>
Sat, 6 Feb 2016 09:57:35 +0000 (10:57 +0100)
dev-lang/python-exec/python-exec-2.9999.ebuild

index 81e31934113ad1025304be744682e6ca16158944..14940d0d0a01b3467e6964834d2a1ff08cb96540 100644 (file)
@@ -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
 }