aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Bartosz Bilas <b.bilas@grinn-global.com>2019-11-08 17:10:43 +0100
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2019-11-08 21:53:02 +0100
commit2d28d0203af466ea6aa1c82d9ef765ce9ea4a577 (patch)
treea78feca001fe6cfc5d36b633a3671221275b5eae
parent0a581ed8b17c45499c3bb108cdae0cd663a4ddb8 (diff)
downloadbuildroot-2d28d0203af466ea6aa1c82d9ef765ce9ea4a577.tar.gz
buildroot-2d28d0203af466ea6aa1c82d9ef765ce9ea4a577.tar.bz2
utils/scanpypi: sort alphabetically list of required packages
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>
-rwxr-xr-xutils/scanpypi1
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/scanpypi b/utils/scanpypi
index b48eda49aa..796ce1d60c 100755
--- a/utils/scanpypi
+++ b/utils/scanpypi
@@ -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('-', '_'))