All of lore.kernel.org
 help / color / mirror / Atom feed
From: Francois Perrad <fperrad@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 04/13] scancpan: sort license in hash file
Date: Wed, 10 Oct 2018 08:46:12 +0200	[thread overview]
Message-ID: <20181010064621.19253-5-francois.perrad@gadz.org> (raw)
In-Reply-To: <20181010064621.19253-1-francois.perrad@gadz.org>

now, the output is reproductible

Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
---
 utils/scancpan | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/utils/scancpan b/utils/scancpan
index f7b707676..64599f430 100755
--- a/utils/scancpan
+++ b/utils/scancpan
@@ -767,10 +767,12 @@ while (my ($distname, $dist) = each %dist) {
         say {$fh} qq{# retrieved by scancpan from ${mirror}/};
         say {$fh} qq{md5    ${md5} ${filename}};
         say {$fh} qq{sha256 ${sha256} ${filename}};
-        if (scalar keys %{$license_files{$distname}}) {
+        my %license_files =  %{$license_files{$distname}};
+        if (scalar keys %license_files) {
             say {$fh} q{};
             say {$fh} qq{# computed by scancpan};
-            while (my ($license, $digest) = each %{$license_files{$distname}}) {
+            foreach my $license (sort keys %license_files) {
+                my $digest = $license_files{$license};
                 say {$fh} qq{sha256 ${digest} ${license}};
             }
         }
-- 
2.17.1

  parent reply	other threads:[~2018-10-10  6:46 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-10  6:46 [Buildroot] [PATCH 00/13] scancpan Francois Perrad
2018-10-10  6:46 ` [Buildroot] [PATCH 01/13] scancpan: wrap abstract if too long Francois Perrad
2018-10-10  6:46 ` [Buildroot] [PATCH 02/13] scancpan: trim the abstract Francois Perrad
2018-10-10  6:46 ` [Buildroot] [PATCH 03/13] scancpan: sort license files Francois Perrad
2018-10-10  6:46 ` Francois Perrad [this message]
2018-10-10  6:46 ` [Buildroot] [PATCH 05/13] scancpan: split multiple dependencies on multiple lines Francois Perrad
2018-10-10  6:46 ` [Buildroot] [PATCH 06/13] scancpan: remove run-time dependencies Francois Perrad
2018-10-10  6:46 ` [Buildroot] [PATCH 07/13] perl-*: regeneration of hash files Francois Perrad
2018-10-10  6:46 ` [Buildroot] [PATCH 08/13] perl-*: regeneration of Config.in files Francois Perrad
2018-10-10  6:46 ` [Buildroot] [PATCH 09/13] perl-*: regeneration of *.mk files Francois Perrad
2018-10-10  6:46 ` [Buildroot] [PATCH 10/13] scancpan: add PERL_FOO_DISTNAME in perl-foo.mk Francois Perrad
2018-10-10  7:10   ` Thomas Petazzoni
2018-10-10  6:46 ` [Buildroot] [PATCH 11/13] perl-*: regeneration with _DISTNAME Francois Perrad
2018-10-10  6:46 ` [Buildroot] [PATCH 12/13] pkg-perl: add a target which upgrades all packages from metacpan Francois Perrad
2018-10-10  7:10   ` Thomas Petazzoni
2018-10-10  7:33     ` François Perrad
2018-10-10  8:25       ` Thomas Petazzoni
2018-10-10  6:46 ` [Buildroot] [PATCH 13/13] [RFC] pkg-perl: add per package upgrade target Francois Perrad
2018-10-10  7:09 ` [Buildroot] [PATCH 00/13] scancpan Thomas Petazzoni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181010064621.19253-5-francois.perrad@gadz.org \
    --to=fperrad@gmail.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.