[dak/master] dak make-pkg-file-mapping: do not include sources from other archives
Include only information about a source package's files if its .dsc is
in the requested archive.
Previously when xy_1.0-1 was in the requested archive and xy_1.0-2
using the same upstream tarball in a different archive, dak would
still include information about xy_1.0-2's upstream tarball resulting
in confusing entries on snapshot.d.o.
Reported-by: Salvatore Bonaccorso <carnil@debian.org>
---
dak/make_pkg_file_mapping.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/dak/make_pkg_file_mapping.py b/dak/make_pkg_file_mapping.py
index e92f567..f52836f 100755
--- a/dak/make_pkg_file_mapping.py
+++ b/dak/make_pkg_file_mapping.py
@@ -52,6 +52,7 @@ def build_mapping(archive, session):
JOIN files ON files.id=dsc_files.file
JOIN files_archive_map ON files.id = files_archive_map.file_id
JOIN component ON files_archive_map.component_id = component.id
+ JOIN files_archive_map fam_dsc ON fam_dsc.file_id=source.file AND fam_dsc.component_id=component.id AND fam_dsc.archive_id=files_archive_map.archive_id
WHERE files_archive_map.archive_id = :archive_id
ORDER BY source, version, component.id, files.filename
"""
--
1.7.10.4
Reply to: