Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: [gentoo-dev] [PATCH v2 2/8] media-plugins/vdr-vdrmanager: Replace unnecessary path_exists call
Date: Thu, 09 Aug 2018 15:17:30
Message-Id: 20180809151602.11147-3-mgorny@gentoo.org
In Reply to: [gentoo-dev] [PATCH v2 0/8] eutils/path_exists removal by "Michał Górny"
1 Replace the unnecessary path_exists calls with plain bash -f test.
2 The path_exists function was only intended to be used when necessary
3 to deal with wildcards.
4
5 Closes: https://bugs.gentoo.org/662178
6 ---
7 media-plugins/vdr-vdrmanager/vdr-vdrmanager-0.14.ebuild | 2 +-
8 1 file changed, 1 insertion(+), 1 deletion(-)
9
10 diff --git a/media-plugins/vdr-vdrmanager/vdr-vdrmanager-0.14.ebuild b/media-plugins/vdr-vdrmanager/vdr-vdrmanager-0.14.ebuild
11 index 8639a6df48d1..6f324f6bcdc8 100644
12 --- a/media-plugins/vdr-vdrmanager/vdr-vdrmanager-0.14.ebuild
13 +++ b/media-plugins/vdr-vdrmanager/vdr-vdrmanager-0.14.ebuild
14 @@ -63,7 +63,7 @@ pkg_postinst() {
15 einfo "Add a password to /etc/conf.d/vdr.vdrmanager"
16
17 if use ssl ; then
18 - if path_exists -a "${ROOT}${VDRMANAGER_SSL_KEY_FILE}.pem"; then
19 + if [[ -f ${ROOT}${VDRMANAGER_SSL_KEY_FILE}.pem ]]; then
20 einfo "found an existing SSL cert, to create a new SSL cert, run:\n"
21 einfo "emerge --config ${PN}"
22 else
23 --
24 2.18.0