commit:     4fe73b0e0c9d639a57a853840efdcb7d33480ab3
Author:     Jonas Stein <jstein <AT> gentoo <DOT> org>
AuthorDate: Tue Apr 10 10:24:02 2018 +0000
Commit:     Jonas Stein <jstein <AT> gentoo <DOT> org>
CommitDate: Tue Apr 10 10:25:08 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4fe73b0e

media-tv/xmltv: Declare local variable

Declare local variable

Package-Manager: Portage-2.3.28, Repoman-2.3.9

 media-tv/xmltv/xmltv-0.5.67.ebuild | 7 ++++---
 media-tv/xmltv/xmltv-0.5.68.ebuild | 1 +
 media-tv/xmltv/xmltv-0.5.70.ebuild | 1 +
 3 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/media-tv/xmltv/xmltv-0.5.67.ebuild 
b/media-tv/xmltv/xmltv-0.5.67.ebuild
index 48d48af7c5e..72f25d804cf 100644
--- a/media-tv/xmltv/xmltv-0.5.67.ebuild
+++ b/media-tv/xmltv/xmltv-0.5.67.ebuild
@@ -179,17 +179,18 @@ src_install() {
 
        perl-module_src_install
 
-       for i in `grep -rl "${D}" "${D}"` ; do
+       local i
+       for i in $(grep -rl "${D}" "${D}"); do
                sed -e "s:${D}::g" -i "${i}" || die
        done
 
-       if use tv_pick_cgi ; then
+       if use tv_pick_cgi; then
                dobin choose/tv_pick/tv_pick_cgi
        fi
 }
 
 pkg_postinst() {
-       if use tv_pick_cgi ; then
+       if use tv_pick_cgi; then
                elog "To use tv_pick_cgi, please link it from 
/usr/bin/tv_pick_cgi"
                elog "to where the ScriptAlias directive is configured."
        fi

diff --git a/media-tv/xmltv/xmltv-0.5.68.ebuild 
b/media-tv/xmltv/xmltv-0.5.68.ebuild
index 6aa94a784f7..d98f182a38e 100644
--- a/media-tv/xmltv/xmltv-0.5.68.ebuild
+++ b/media-tv/xmltv/xmltv-0.5.68.ebuild
@@ -187,6 +187,7 @@ src_install() {
 
        perl-module_src_install
 
+       local i
        for i in $(grep -rl "${D}" "${D}"); do
                sed -e "s:${D}::g" -i "${i}" || die
        done

diff --git a/media-tv/xmltv/xmltv-0.5.70.ebuild 
b/media-tv/xmltv/xmltv-0.5.70.ebuild
index 6a8f8c0ea52..b32fc832916 100644
--- a/media-tv/xmltv/xmltv-0.5.70.ebuild
+++ b/media-tv/xmltv/xmltv-0.5.70.ebuild
@@ -164,6 +164,7 @@ src_install() {
 
        perl-module_src_install
 
+       local i
        for i in $(grep -rl "${D}" "${D}"); do
                sed -e "s:${D}::g" -i "${i}" || die
        done

Reply via email to