[elbe-devel] [PATCH] elbe-pbuilder: fix get_files for --pbuilder-only

Christian Teklenborg chris at linutronix.de
Mon Sep 7 12:24:17 CEST 2020


If 'elbe control --pbuilder-only get_files' is called it will check if the
path starts with 'pbuilder_cross' and if pbuilder-only is True. If this
isn't the case it will skip the download. It should also examine if the
path starts with 'pbuilder'. Therefore add a check for this case in
the get_files function.

This patch fixes GitHub issue #280.

Signed-off-by: Christian Teklenborg <chris at linutronix.de>
---
 elbepack/soapclient.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/elbepack/soapclient.py b/elbepack/soapclient.py
index bc27fa7f..a53cf9cf 100644
--- a/elbepack/soapclient.py
+++ b/elbepack/soapclient.py
@@ -574,7 +574,8 @@ class GetFilesAction(ClientAction):
         nfiles = 0
 
         for f in files[0]:
-            if (opt.pbuilder_only and not f.name.startswith('pbuilder_cross')):
+            if (opt.pbuilder_only and not f.name.startswith('pbuilder_cross')
+                and not f.name.startswith('pbuilder')):
                 continue
 
             if opt.matches and not fnmatch.fnmatch(f.name, opt.matches):
-- 
2.20.1



More information about the elbe-devel mailing list