[elbe-devel] [PATCH 07/13] pylint - repomanager: fix using undefined variable

Manuel Traut manut at linutronix.de
Thu Aug 30 17:05:18 CEST 2018


att is only well defined in the for loop, probably we need to export
more than one suite here, so add the loop again.

It can't be done inside the loop, because the config file is not written
yet.

Signed-off-by: Manuel Traut <manut at linutronix.de>
---
 elbepack/repomanager.py | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/elbepack/repomanager.py b/elbepack/repomanager.py
index 24d78062..d7540bf4 100644
--- a/elbepack/repomanager.py
+++ b/elbepack/repomanager.py
@@ -170,11 +170,12 @@ class RepoBase(object):
                 self.fs.path +
                 '" update')
         else:
-            self.log.do(
-                'reprepro --basedir "' +
-                self.fs.path +
-                '" export ' +
-                att.codename)
+            for att in self.attrs:
+                self.log.do(
+                    'reprepro --basedir "' +
+                    self.fs.path +
+                    '" export ' +
+                    att.codename)
 
     def finalize(self):
         os.environ['GNUPGHOME'] = "/var/cache/elbe/gnupg"
-- 
2.18.0




More information about the elbe-devel mailing list