[libvirt-ci PATCH] lcitool: Calculate pkg_align properly

Andrea Bolognani abologna at redhat.com
Thu Apr 30 17:41:50 UTC 2020


In one instance, the alignment was incorrectly based on the name
of the packaging format rather than that of the packaging command.

Fixes: 6c6ed1b925a03ed4223231a932a85668ba4bf8d8
Signed-off-by: Andrea Bolognani <abologna at redhat.com>
---
Pushed as trivial.

 guests/lcitool | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/guests/lcitool b/guests/lcitool
index abc87d2..ab3b95f 100755
--- a/guests/lcitool
+++ b/guests/lcitool
@@ -817,7 +817,7 @@ class Application:
                     if cross_pkgs[package] is None:
                         del cross_pkgs[package]
 
-        pkg_align = " \\\n" + (" " * len("RUN " + facts["packaging"]["format"] + " "))
+        pkg_align = " \\\n" + (" " * len("RUN " + facts["packaging"]["command"] + " "))
         pip_pkg_align = " \\\n" + (" " * len("RUN pip3 "))
 
         varmap = {}
-- 
2.25.4




More information about the libvir-list mailing list