From patchwork Fri Nov 8 16:10:43 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Bilas X-Patchwork-Id: 1192019 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=grinn-global.com Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 478lcR2vYwz9s7T for ; Sat, 9 Nov 2019 03:10:47 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 272C687E5E; Fri, 8 Nov 2019 16:10:45 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PGyNf5dVFFXu; Fri, 8 Nov 2019 16:10:44 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 5C71687E62; Fri, 8 Nov 2019 16:10:44 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 09C871BF370 for ; Fri, 8 Nov 2019 16:10:43 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 05CDE87E62 for ; Fri, 8 Nov 2019 16:10:43 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id O1+LojRd3fKa for ; Fri, 8 Nov 2019 16:10:41 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from smtp.megiteam.pl (smtp.megiteam.pl [31.186.83.105]) by hemlock.osuosl.org (Postfix) with ESMTPS id 35A4F87E5E for ; Fri, 8 Nov 2019 16:10:41 +0000 (UTC) Received: from host-81-161-203-230.oxylion.net.pl ([81.161.203.230] helo=bartekk-pc.lan) by smtp.megiteam.pl with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86.2_XX) (envelope-from ) id 1iT6qL-0004zk-0n; Fri, 08 Nov 2019 17:10:37 +0100 From: Bartosz Bilas To: buildroot@buildroot.org Date: Fri, 8 Nov 2019 17:10:43 +0100 Message-Id: <20191108161043.342378-1-b.bilas@grinn-global.com> X-Mailer: git-send-email 2.24.0 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] utils/scanpypi: sort alphabetically list of required packages X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Bartosz Bilas Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" 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 --- utils/scanpypi | 1 + 1 file changed, 1 insertion(+) 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('-', '_'))