mk-ca-bundle.pl: drop reproducible timestamp feature
No binary (build failed)
—
(log yok)
| @@ -60,7 +60,7 @@ $opt_d = 'release'; | |
| # If the OpenSSL commandline is not in search path you can configure it here! | |
| my $openssl = 'openssl'; | |
| - | my $version = '1.32'; |
| + | my $version = '1.33'; |
| $opt_w = 76; # default base64 encoded lines length | |
| @@ -307,31 +307,6 @@ my $filedate_iso = ''; | |
| if(!$opt_n) { | |
| report "Using URL: $url"; | |
| - | |
| - | my $sha = ''; |
| - | if($opt_d ne 'ref') { |
| - | report "Determining latest commit and timestamp for the remote file ..."; |
| - | |
| - | my $out = ''; |
| - | # https://raw.githubusercontent.com/mozilla-firefox/firefox/refs/heads/autoland/security/nss/lib/ckfw/builtins/certdata.txt |
| - | if($url =~ /^https:\/\/raw.githubusercontent.com\/([a-zA-Z0-9_.-]+\/[a-zA-Z0-9_.-]+)\/(refs\/heads\/[a-z]+)(\/.+)$/) { |
| - | my $slug = $1; |
| - | my $refs = "&sha=$2"; |
| - | my $path = $3; |
| - | if(open(my $fh, '-|', 'curl', '-A', 'curl', '-H', 'X-GitHub-Api-Version: 2022-11-28', |
| - | "https://api.github.com/repos/mozilla-firefox/firefox/commits?path=$path$refs")) { |
| - | $out = do { local $/; <$fh> }; |
| - | close $fh; |
| - | } |
| - | if($out) { |
| - | use JSON::PP; |
| - | my $json = decode_json($out); |
| - | $sha = $json->[0]->{sha}; |
| - | $filedate_iso = $json->[0]->{commit}->{committer}->{date}; |
| - | } |
| - | } |
| - | } |
| - | |
| report "Downloading $txt ..."; | |
| # If we have an HTTPS URL then use curl | |