Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 2 additions & 15 deletions maint/mk-ca-bundle.pl
Original file line number Diff line number Diff line change
Expand Up @@ -303,8 +303,6 @@ (%)

report "SHA256 of old file: $oldhash";

my $filedate_iso = '';

if(!$opt_n) {
report "Using URL: $url";
report "Downloading $txt ...";
Expand Down Expand Up @@ -378,19 +376,8 @@ (%)
}
}

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();
Expand Down
Loading