utils/scanpypi: sort alphabetically list of required packages
PATCH 1/1 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 <[email protected]>
--- utils/scanpypi | 1 + 1 file changed, 1 insertion(+)
utils/scanpypi +1 -0
@@ -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('-', '_'))
Signature · 1 line
2.24.0
PATCH 1/1 utils/scanpypi: sort alphabetically list of required packages
Quoted 10 lines · Bartosz Bilas
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 <[email protected]>
Reviewed-by Yegor Yefremov <[email protected]>
Quoted 19 lines
--- utils/scanpypi | 1 + 1 file changed, 1 insertion(+)utils/scanpypi +1
-1@@ -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('-', '_')) --2.24.0
Thomas Petazzoni
AppliedPATCH 1/1 utils/scanpypi: sort alphabetically list of required packages
In reply to Bartosz BilasQuoted 5 lines · On Fri, 8 Nov 2019 17:10:43 +0100 Bartosz Bilas <[email protected]>…
That change will alphabetically set list order of required packages in Config.in file automatically.
Example below:
Quoted 7 lines
before: ['python-pyserial', 'python-pyaes', 'python-ecdsa'] after: ['python-ecdsa', 'python-pyaes', 'python-pyserial']Signed-off-by Bartosz Bilas <[email protected]>--- utils/scanpypi | 1 + 1 file changed, 1 insertion(+)
Applied to next, thanks.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com