mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 17:09:10 -07:00
systemd.eclass: fix systemd_tmpfiles_create under EAPI 7
Closes: https://bugs.gentoo.org/740586 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
This commit is contained in:
@@ -448,7 +448,7 @@ systemd_tmpfiles_create() {
|
||||
|
||||
[[ ${EBUILD_PHASE} == postinst ]] || die "${FUNCNAME}: Only valid in pkg_postinst"
|
||||
[[ ${#} -gt 0 ]] || die "${FUNCNAME}: Must specify at least one filename"
|
||||
[[ ${ROOT} == / ]] || return 0
|
||||
[[ ${ROOT:-/} == / ]] || return 0
|
||||
type systemd-tmpfiles &> /dev/null || return 0
|
||||
systemd-tmpfiles --create "${@}"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user