sys-apps/smartmontools: use EROOT instead of EPREFIX in postinst

Closes: https://bugs.gentoo.org/738668
Closes: https://github.com/gentoo/gentoo/pull/17229
Package-Manager: Portage-3.0.1, Repoman-2.3.23
Signed-off-by: Steven Johnson <steven.gregory.johnson@gmail.com>
Signed-off-by: David Seifert <soap@gentoo.org>
This commit is contained in:
Steven Johnson
2020-08-23 01:02:44 -07:00
committed by David Seifert
parent 4d61e90a9b
commit 2e24c2f37f
3 changed files with 6 additions and 6 deletions

View File

@@ -114,8 +114,8 @@ src_install() {
pkg_postinst() {
if use daemon || use update_drivedb; then
local initial_db_file="${EPREFIX}/usr/share/${PN}/drivedb.h"
local db_path="${EPREFIX}/var/db/${PN}"
local initial_db_file="${EROOT}/usr/share/${PN}/drivedb.h"
local db_path="${EROOT}/var/db/${PN}"
if [[ ! -f "${db_path}/drivedb.h" ]] ; then
# No initial database found

View File

@@ -114,8 +114,8 @@ src_install() {
pkg_postinst() {
if use daemon || use update_drivedb; then
local initial_db_file="${EPREFIX}/usr/share/${PN}/drivedb.h"
local db_path="${EPREFIX}/var/db/${PN}"
local initial_db_file="${EROOT}/usr/share/${PN}/drivedb.h"
local db_path="${EROOT}/var/db/${PN}"
if [[ ! -f "${db_path}/drivedb.h" ]] ; then
# No initial database found

View File

@@ -114,8 +114,8 @@ src_install() {
pkg_postinst() {
if use daemon || use update_drivedb; then
local initial_db_file="${EPREFIX}/usr/share/${PN}/drivedb.h"
local db_path="${EPREFIX}/var/db/${PN}"
local initial_db_file="${EROOT}/usr/share/${PN}/drivedb.h"
local db_path="${EROOT}/var/db/${PN}"
if [[ ! -f "${db_path}/drivedb.h" ]] ; then
# No initial database found