[elbe-devel] [PATCH 2/4] repomanager: fix using undefined variable
Manuel Traut
manut at linutronix.de
Fri Sep 14 13:53:03 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 54dae205..e43b2911 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.19.0.rc2
More information about the elbe-devel
mailing list