[libvirt PATCH 28/33] ci: helper: Add a helper to create a local repo clone Pythonic way

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



A proper Python equivalent of 'git clone --local'.

Signed-off-by: Erik Skultety <eskultet@xxxxxxxxxx>
---
 ci/helper | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/ci/helper b/ci/helper
index 2a51ce1786..d704d1f711 100755
--- a/ci/helper
+++ b/ci/helper
@@ -211,6 +211,10 @@ class Application:
         if pty.spawn(["make"] + args) != 0:
             sys.exit("error: 'make' failed")
 
+    @staticmethod
+    def _prepare_repo_copy(repo, dest):
+        return repo.clone(dest, local=True)
+
     def _lcitool_run(self, args):
         output = subprocess.check_output([self._args.lcitool] + args)
         return output.decode("utf-8")
-- 
2.41.0




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux