|
Zbigniew Jędrzejewski-Szmek |
d743bb |
From 47ae16f221555779be1d1781f4a9f5cbb2b56680 Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
From: Felix Zhang <fezhang@suse.com>
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
Date: Mon, 20 Mar 2017 18:27:39 +0800
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
Subject: [PATCH] systemctl: fix broken vertical lines in list-dependencies
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
--all (#5608)
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
(cherry picked from commit 60705040152c9953a200eea16fffb5fef894c613)
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
---
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
src/systemctl/systemctl.c | 1 +
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
1 file changed, 1 insertion(+)
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
index d78e56d777..cb9ca9ae1e 100644
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
--- a/src/systemctl/systemctl.c
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
+++ b/src/systemctl/systemctl.c
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
@@ -1780,6 +1780,7 @@ static int list_dependencies_one(
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
STRV_FOREACH(c, deps) {
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
if (strv_contains(*units, *c)) {
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
if (!arg_plain) {
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
+ printf(" ");
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
r = list_dependencies_print("...", level + 1, (branches << 1) | (c[1] == NULL ? 0 : 1), 1);
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
if (r < 0)
|
|
Zbigniew Jędrzejewski-Szmek |
d743bb |
return r;
|