[libvirt-ci PATCH] lcitool: Calculate pkg_align properly

Andrea Bolognani posted 1 patch 3 years, 11 months ago
Failed in applying to current master (apply log)
guests/lcitool | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[libvirt-ci PATCH] lcitool: Calculate pkg_align properly
Posted by Andrea Bolognani 3 years, 11 months ago
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@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