]> git.decadent.org.uk Git - dak.git/commitdiff
dak make-pkg-file-mapping: ensure stable order
authorAnsgar Burchardt <ansgar@debian.org>
Thu, 11 Sep 2014 18:29:11 +0000 (20:29 +0200)
committerAnsgar Burchardt <ansgar@debian.org>
Thu, 11 Sep 2014 18:29:11 +0000 (20:29 +0200)
Include component and filename in the ORDER BY clause to ensure the
output order does not change.

dak/make_pkg_file_mapping.py

index 175376709a14405dcafb737eb8f375fd389141ed..e92f5674ea99d3d8e172c0f0805d005f45cb00c9 100755 (executable)
@@ -53,7 +53,7 @@ def build_mapping(archive, session):
       JOIN files_archive_map ON files.id = files_archive_map.file_id
       JOIN component ON files_archive_map.component_id = component.id
     WHERE files_archive_map.archive_id = :archive_id
-    ORDER BY source, version
+    ORDER BY source, version, component.id, files.filename
     """
 
     query_binaries = """