From f1bdbd25e3aae1c86eb8d981a5cab0a477d6b3f2 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Fri, 27 Mar 2026 22:39:15 +0100 Subject: [PATCH] mk-ca-bundle.pl: tidy up more leftovers Follow-up to 351e4f956a11bdf419c14f1f69758a15e77e7fea #21116 Follow-up to ca92e20123928e4788d27135cdafdd084d3833d4 #20528 Closes #21131 --- scripts/mk-ca-bundle.pl | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/scripts/mk-ca-bundle.pl b/scripts/mk-ca-bundle.pl index 6170d781c9..4eb7598634 100755 --- a/scripts/mk-ca-bundle.pl +++ b/scripts/mk-ca-bundle.pl @@ -303,8 +303,6 @@ my $oldhash = oldhash($crt); report "SHA256 of old file: $oldhash"; -my $filedate_iso = ''; - if(!$opt_n) { report "Using URL: $url"; report "Downloading $txt ..."; @@ -378,19 +376,8 @@ if(!$opt_n) { } } -my $filedate; -my $datesrc; - -if($filedate_iso) { - my $time = Time::Piece->strptime($filedate_iso, '%Y-%m-%dT%H:%M:%SZ'); - $filedate = $time->epoch; - $datesrc = "last updated on"; - utime($filedate, $filedate, $txt); -} -if(!$filedate) { - $filedate = $resp ? $resp->last_modified : (stat($txt))[9]; - $datesrc = "as of"; -} +my $filedate = $resp ? $resp->last_modified : (stat($txt))[9]; +my $datesrc = "as of"; if(!$filedate) { # mxr.mozilla.org gave us a time, hg.mozilla.org does not! $filedate = time();