[dak/master] Make getArchAll() multithread safe.
Signed-off-by: Torsten Werner <twerner@debian.org>
---
daklib/lists.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/daklib/lists.py b/daklib/lists.py
index e7f8bf9..320184e 100755
--- a/daklib/lists.py
+++ b/daklib/lists.py
@@ -64,7 +64,8 @@ def getArchAll(suite, component, architecture, type, session, timestamp = None):
full pathname to the u(deb) file. See function writeAllList() in
dak/generate_filelist.py for an example that uses this function.
'''
- query = suite.binaries.filter_by(architecture = architecture, binarytype = type)
+ query = suite.clone(session).binaries. \
+ filter_by(architecture = architecture, binarytype = type)
if timestamp is not None:
extra_cond = 'extract(epoch from bin_associations.created) > %d' % timestamp
query = query.filter(extra_cond)
--
1.7.2.5
Reply to: