media-plugins/vdr-live: Replace unnecessary path_exists calls
authorMichał Górny <mgorny@gentoo.org>
Wed, 8 Aug 2018 21:14:05 +0000 (23:14 +0200)
committerMichał Górny <mgorny@gentoo.org>
Wed, 15 Aug 2018 07:30:53 +0000 (09:30 +0200)
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
media-plugins/vdr-live/vdr-live-0.3.0_p20130504-r2.ebuild
media-plugins/vdr-live/vdr-live-2.3.1.ebuild

index 6041faafd99ea74c1c063242b1bb4347c8f4ce2c..24ec6897b14fa00a3ca23aa4f7cc787c37a829be 100644 (file)
@@ -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
index 0dbcc0a04730ecadc8dddb0becce9b484eee839d..9ecf777aa2748ac8dccb9c0c89438086addd442d 100644 (file)
@@ -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
index f46cff93c6de0318d881df692b2a410897541574..6a0ea6d24b88a7feb8666479ed71937b54d4149f 100644 (file)
@@ -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