[libvirt] [dockerfiles PATCH 1/3] refresh: Store projects in a more convenient format

Andrea Bolognani abologna at redhat.com
Thu Jul 18 12:20:33 UTC 2019


Signed-off-by: Andrea Bolognani <abologna at redhat.com>
---
 refresh | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/refresh b/refresh
index 1db0fc8..81df77e 100755
--- a/refresh
+++ b/refresh
@@ -58,12 +58,16 @@ class Dockerfile:
             self.os = stem
             self.cross_arch = None
 
+        self.projects = [
+            "libvirt",
+        ]
+
         # Fedora Rawhide is special in that we use it to perform MinGW
         # builds, so we need to add the corresponding projects
         if self.os == "fedora-rawhide":
-            self.projects = "libvirt,libvirt+mingw*"
-        else:
-            self.projects = "libvirt"
+            self.projects += [
+                "libvirt+mingw*",
+            ]
 
     def refresh(self, lcitool):
 
@@ -81,7 +85,7 @@ class Dockerfile:
 
         args += [
             "libvirt-" + self.os,
-            self.projects,
+            ",".join(self.projects)
         ]
 
         rc = subprocess.run(args, capture_output=True)
-- 
2.21.0




More information about the libvir-list mailing list