From b53d42b509836e9b3a599e5b99590c386c402886 Mon Sep 17 00:00:00 2001 From: Ansgar Burchardt Date: Sun, 4 Nov 2012 16:58:36 +0100 Subject: [PATCH] dak/export_suite.py: same file might be in multiple components Use first() instead of one() in case the file is available in multiple components. --- dak/export_suite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dak/export_suite.py b/dak/export_suite.py index 1c22f5e5..b39d343b 100644 --- a/dak/export_suite.py +++ b/dak/export_suite.py @@ -79,7 +79,7 @@ def main(argv=None): af = session.query(ArchiveFile) \ .join(ArchiveFile.component).join(ArchiveFile.file) \ .filter(ArchiveFile.archive == suite.archive) \ - .filter(ArchiveFile.file == f).one() + .filter(ArchiveFile.file == f).first() dst = os.path.join(directory, f.basename) if not os.path.exists(dst): fs.copy(af.path, dst, symlink=symlink) -- 2.39.5