[elbe-devel] [PATCH 1/1] pbuilder: Fix syntax errors

bage at linutronix.de bage at linutronix.de
Wed Sep 23 17:29:38 CEST 2020


From: Bastian Germann <bage at linutronix.de>

4b2529e016 (pbuilder: Update the mirror management of pbuilder hook)
introduced 3 syntax errors. Fix them.

Signed-off-by: Bastian Germann <bage at linutronix.de>
---
 elbepack/pbuilder.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/elbepack/pbuilder.py b/elbepack/pbuilder.py
index 710ea7d08..7799ebe9e 100644
--- a/elbepack/pbuilder.py
+++ b/elbepack/pbuilder.py
@@ -149,8 +149,8 @@ def pbuilder_write_repo_hook(builddir, xml, cross):
 
     with open(os.path.join(pbuilder_hook_dir, "G10elbe_apt_sources"), "w") as f:
 
-        local_http = "deb http://127.0.0.1:8080%s/repo %s main\n" %
-			(builddir, xml.prj.text("suite"))
+        local_http = "deb http://127.0.0.1:8080%s/repo %s main\n" % (
+                     builddir, xml.prj.text("suite"))
         mirrors = xml.create_apt_sources_list(hostsysroot=cross)
         mirrors = local_http + mirrors
 
@@ -177,7 +177,7 @@ def get_apt_keys(builddir, xml):
 
     keys    = [Filesystem(builddir).read_file("repo/repo.pub")]
 
-    if xml.prj.has("mirror/primary_host") and xml.prj.has("mirror/url-list")
+    if xml.prj.has("mirror/primary_host") and xml.prj.has("mirror/url-list"):
 
         for url in xml.prj.node("mirror/url-list"):
 
@@ -189,7 +189,7 @@ def get_apt_keys(builddir, xml):
                  options = ""
 
 
-            if url.has("raw-key") and not "trusted=yes" in options:
+             if url.has("raw-key") and not "trusted=yes" in options:
 
                 key = "\n".join(line.strip(" \t")
                                 for line
-- 
2.28.0



More information about the elbe-devel mailing list