mk-ca-bundle.pl: tidy up more leftovers

Follow-up to 351e4f956a #21116
Follow-up to ca92e20123 #20528

Closes #21131
This commit is contained in:
Viktor Szakats 2026-03-27 22:39:15 +01:00
parent 30462cd66f
commit f1bdbd25e3
No known key found for this signature in database

View File

@ -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();