summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-04-23 03:09:04 +0100
committerSam James <sam@gentoo.org>2022-04-23 03:09:11 +0100
commitc45ed414df8fcd17ece70028d945dbda6f89b1f9 (patch)
treead99df296357e68dd982de6c2c2a061ad39e6d24 /net-dns/openresolv
parentsys-libs/musl: fix ROOT check in pkg_postinst (diff)
downloadgentoo-c45ed414df8fcd17ece70028d945dbda6f89b1f9.tar.gz
gentoo-c45ed414df8fcd17ece70028d945dbda6f89b1f9.tar.bz2
gentoo-c45ed414df8fcd17ece70028d945dbda6f89b1f9.zip
net-dns/openresolv: fix ROOT check in pkg_postinst
With EAPI 7+, ROOT and others will be blank (not /). Fixes: b6803d6d2c323f3133445ab886dce168429f39d2 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-dns/openresolv')
-rw-r--r--net-dns/openresolv/openresolv-3.12.0-r1.ebuild4
1 files changed, 2 insertions, 2 deletions
diff --git a/net-dns/openresolv/openresolv-3.12.0-r1.ebuild b/net-dns/openresolv/openresolv-3.12.0-r1.ebuild
index 69e175c0d2ab..f70291af0349 100644
--- a/net-dns/openresolv/openresolv-3.12.0-r1.ebuild
+++ b/net-dns/openresolv/openresolv-3.12.0-r1.ebuild
@@ -25,8 +25,8 @@ src_configure() {
}
pkg_config() {
- if [[ -z ${ROOT} ]]; then
- eerror "We cannot configure unless \$ROOT=/"
+ if [[ -n ${ROOT} ]]; then
+ eerror "We cannot configure unless \$ROOT is empty"
return 1
fi