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