From: Bartosz Bilas Date: Fri, 8 Nov 2019 16:10:43 +0000 (+0100) Subject: utils/scanpypi: sort alphabetically list of required packages X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2d28d0203af466ea6aa1c82d9ef765ce9ea4a577;p=buildroot.git 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 Reviewed-by: Yegor Yefremov Signed-off-by: Thomas Petazzoni --- 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('-', '_'))