From: Michał Górny Date: Wed, 8 Aug 2018 21:14:05 +0000 (+0200) Subject: media-plugins/vdr-live: Replace unnecessary path_exists calls X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=6b861b6f5df522ec7e662150d3c6b9f213a5ef18;p=gentoo.git 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 --- 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