utils/scanpypi: sort alphabetically list of required packages
authorBartosz Bilas <b.bilas@grinn-global.com>
Fri, 8 Nov 2019 16:10:43 +0000 (17:10 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Fri, 8 Nov 2019 20:53:02 +0000 (21:53 +0100)
That change will alphabetically set list order
of required packages in Config.in file automatically.

Example below:

before: ['python-pyserial', 'python-pyaes', 'python-ecdsa']
after:  ['python-ecdsa', 'python-pyaes', 'python-pyserial']

Signed-off-by: Bartosz Bilas <b.bilas@grinn-global.com>
Reviewed-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
utils/scanpypi

index b48eda49aa210d179d49f69cf8c4ece6b45afd9c..796ce1d60c3e2a99992391fb5f671c71ee982d39 100755 (executable)
@@ -612,6 +612,7 @@ class BuildrootPackage():
         bool_line = '\tbool "{name}"\n'.format(name=self.buildroot_name)
         lines.append(bool_line)
         if self.pkg_req:
+            self.pkg_req.sort()
             for dep in self.pkg_req:
                 dep_line = '\tselect BR2_PACKAGE_{req} # runtime\n'.format(
                     req=dep.upper().replace('-', '_'))