]> git.decadent.org.uk Git - dak.git/blobdiff - dak/generate_filelist.py
generate-filelist: improve formatting of help
[dak.git] / dak / generate_filelist.py
index 02f5f18518b7985e31ddcb2e0099837e6db54b6f..43a76054fefe2a3d21543e5b41a1a13251093ed0 100755 (executable)
@@ -36,6 +36,7 @@ def getSources(suite, component, session):
         SELECT path, filename
             FROM srcfiles_suite_component
             WHERE suite = :suite AND component = :component
+            ORDER BY filename
     """
     args = { 'suite': suite.suite_id,
              'component': component.component_id }
@@ -47,6 +48,7 @@ def getBinaries(suite, component, architecture, type, session):
             FROM binfiles_suite_component_arch
             WHERE suite = :suite AND component = :component AND type = :type AND
                   (architecture = :architecture OR architecture = 2)
+            ORDER BY filename
     """
     args = { 'suite': suite.suite_id,
              'component': component.component_id,
@@ -83,10 +85,10 @@ def usage():
     print """Usage: dak generate_filelist [OPTIONS]
 Create filename lists for apt-ftparchive.
 
-  -s, --suite=SUITE                    act on this suite
+  -s, --suite=SUITE            act on this suite
   -c, --component=COMPONENT    act on this component
-  -a, --architecture=ARCH        act on this architecture
-  -h, --help                                 show this help and exit
+  -a, --architecture=ARCH      act on this architecture
+  -h, --help                   show this help and exit
 
 ARCH, COMPONENT and SUITE can be comma (or space) separated list, e.g.
     --suite=testing,unstable"""