commit:     6b861b6f5df522ec7e662150d3c6b9f213a5ef18
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Aug  8 21:14:05 2018 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Aug 15 07:30:53 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6b861b6f

media-plugins/vdr-live: Replace unnecessary path_exists calls

Replace the unnecessary path_exists calls with plain bash -f test.
The path_exists function was only intended to be used when necessary
to deal with wildcards.

Bug: https://bugs.gentoo.org/662178

 media-plugins/vdr-live/vdr-live-0.3.0_p20130504-r1.ebuild | 2 +-
 media-plugins/vdr-live/vdr-live-0.3.0_p20130504-r2.ebuild | 2 +-
 media-plugins/vdr-live/vdr-live-2.3.1.ebuild              | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/media-plugins/vdr-live/vdr-live-0.3.0_p20130504-r1.ebuild 
b/media-plugins/vdr-live/vdr-live-0.3.0_p20130504-r1.ebuild
index 6041faafd99..24ec6897b14 100644
--- a/media-plugins/vdr-live/vdr-live-0.3.0_p20130504-r1.ebuild
+++ b/media-plugins/vdr-live/vdr-live-0.3.0_p20130504-r1.ebuild
@@ -90,7 +90,7 @@ pkg_postinst() {
        elog "\tadmin:live"
 
        if use ssl ; then
-               if path_exists -a "${ROOT}"/etc/vdr/plugins/live/live.pem; then
+               if [[ -f ${ROOT}/etc/vdr/plugins/live/live.pem ]]; then
                        einfo "found an existing SSL cert, to create a new SSL 
cert, run:\n"
                        einfo "emerge --config ${PN}"
                else

diff --git a/media-plugins/vdr-live/vdr-live-0.3.0_p20130504-r2.ebuild 
b/media-plugins/vdr-live/vdr-live-0.3.0_p20130504-r2.ebuild
index 0dbcc0a0473..9ecf777aa27 100644
--- a/media-plugins/vdr-live/vdr-live-0.3.0_p20130504-r2.ebuild
+++ b/media-plugins/vdr-live/vdr-live-0.3.0_p20130504-r2.ebuild
@@ -93,7 +93,7 @@ pkg_postinst() {
        elog "\tadmin:live"
 
        if use ssl ; then
-               if path_exists -a "${ROOT}"/etc/vdr/plugins/live/live.pem; then
+               if [[ -f ${ROOT}/etc/vdr/plugins/live/live.pem ]]; then
                        einfo "found an existing SSL cert, to create a new SSL 
cert, run:\n"
                        einfo "emerge --config ${PN}"
                else

diff --git a/media-plugins/vdr-live/vdr-live-2.3.1.ebuild 
b/media-plugins/vdr-live/vdr-live-2.3.1.ebuild
index f46cff93c6d..6a0ea6d24b8 100644
--- a/media-plugins/vdr-live/vdr-live-2.3.1.ebuild
+++ b/media-plugins/vdr-live/vdr-live-2.3.1.ebuild
@@ -86,7 +86,7 @@ pkg_postinst() {
        elog "\tadmin:live"
 
        if use ssl ; then
-               if path_exists -a "${ROOT}"/etc/vdr/plugins/live/live.pem; then
+               if [[ -f ${ROOT}/etc/vdr/plugins/live/live.pem ]]; then
                        einfo "found an existing SSL cert, to create a new SSL 
cert, run:\n"
                        einfo "emerge --config ${PN}"
                else

Reply via email to