summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2019-04-04 11:27:32 -0400
committerMike Gilbert <floppym@gentoo.org>2019-04-04 11:27:32 -0400
commit99401396dd0ae8cee0c5dde7137ac751142e8558 (patch)
tree3ee34ea7631ab3bf7f9bc9ea014b9fc1ebdc8cdd /sys-apps
parentapp-emulation/libvirt: fixes dependency on incompatible net-analyzer/gnu-netc... (diff)
downloadgentoo-99401396dd0ae8cee0c5dde7137ac751142e8558.tar.gz
gentoo-99401396dd0ae8cee0c5dde7137ac751142e8558.tar.bz2
gentoo-99401396dd0ae8cee0c5dde7137ac751142e8558.zip
sys-apps/systemd: fixup save_enabled_units
Package-Manager: Portage-2.3.62_p4, Repoman-2.3.12_p87 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/systemd/systemd-242_rc2.ebuild3
-rw-r--r--sys-apps/systemd/systemd-9999.ebuild3
2 files changed, 4 insertions, 2 deletions
diff --git a/sys-apps/systemd/systemd-242_rc2.ebuild b/sys-apps/systemd/systemd-242_rc2.ebuild
index 0be24409401..bbb07c49e43 100644
--- a/sys-apps/systemd/systemd-242_rc2.ebuild
+++ b/sys-apps/systemd/systemd-242_rc2.ebuild
@@ -393,7 +393,8 @@ migrate_locale() {
}
save_enabled_units() {
- [[ -z ${ROOT} ]] || return
+ ENABLED_UNITS=()
+ type systemctl &>/dev/null || return
for x; do
if systemctl --quiet --root="${ROOT:-/}" is-enabled "${x}"; then
ENABLED_UNITS+=( "${x}" )
diff --git a/sys-apps/systemd/systemd-9999.ebuild b/sys-apps/systemd/systemd-9999.ebuild
index 0be24409401..bbb07c49e43 100644
--- a/sys-apps/systemd/systemd-9999.ebuild
+++ b/sys-apps/systemd/systemd-9999.ebuild
@@ -393,7 +393,8 @@ migrate_locale() {
}
save_enabled_units() {
- [[ -z ${ROOT} ]] || return
+ ENABLED_UNITS=()
+ type systemctl &>/dev/null || return
for x; do
if systemctl --quiet --root="${ROOT:-/}" is-enabled "${x}"; then
ENABLED_UNITS+=( "${x}" )