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 6041faafd99e..24ec6897b14f 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 0dbcc0a04730..9ecf777aa274 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 f46cff93c6de..6a0ea6d24b88 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
-- 
2.18.0


Reply via email to