mirror of
https://github.com/curl/curl.git
synced 2026-04-11 12:01:42 +08:00
mk-ca-bundle.pl: tidy up more leftovers
Follow-up to351e4f956a#21116 Follow-up toca92e20123#20528 Closes #21131
This commit is contained in:
parent
30462cd66f
commit
f1bdbd25e3
@ -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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user