Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
tails
tails
Commits
34f11af9
Commit
34f11af9
authored
Aug 09, 2010
by
amnesia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New htpdate script (43f5f83c0)
parent
0b6c15b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
config/chroot_local-includes/usr/local/sbin/htpdate
config/chroot_local-includes/usr/local/sbin/htpdate
+4
-0
No files found.
config/chroot_local-includes/usr/local/sbin/htpdate
View file @
34f11af9
...
...
@@ -32,6 +32,7 @@ use DateTime;
use
DateTime::Format::
DateParse
;
use
English
qw( -no_match_vars )
;
use
Fatal
qw( open close )
;
use
File::
Path
qw(rmtree)
;
use
File::
Temp
qw/tempdir/
;
use
Getopt::
Std
;
use
open
qw{:utf8 :std}
;
...
...
@@ -189,9 +190,12 @@ sub getRemoteDateDiff {
my
$newestdt
;
eval
{
$newestdt
=
newestDateHeader
(
$tmpdir
)
};
if
(
$EVAL_ERROR
=~
m/No downloaded files can be found/
)
{
rmtree
(
$tmpdir
);
error
"
No file could be downloaded from
$url
.
";
}
rmtree
(
$tmpdir
);
defined
$newestdt
or
error
"
Could not get any Date header
";
my
$diffdt
=
$newestdt
-
$localdt
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment