Commit 93c6cd4e authored by amnesia's avatar amnesia
Browse files

Merge branch 'master' into squeeze

parents 9097ce57 9d3f2d9f
......@@ -39,3 +39,5 @@ for MODULE in $MODULES ; do
$MA clean ${MODULE}
aptitude --assume-yes purge ${MODULE}
done
rm -f /usr/src/*.deb
......@@ -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;
......
......@@ -27,9 +27,9 @@ us with supposedly accurate time information.
Home-made research [[demonstrated|todo/authenticate_time_servers]]
that NTPv4's server authentication features do not fit our usecase
yet. Using it is the long term goal but in the meantime we decided to
use [HTP](http://www.clevervest.com/twiki/bin/view/HTP).
use [HTP](http://www.vervest.org/htp/).
[HTP](http://www.clevervest.com/twiki/bin/view/HTP) is not really a
[HTP](http://www.vervest.org/htp/) is not really a
protocol, but uses a feature from HTTP, aka web traffic. According the
specifications of HTTP/1.1 (RFC 2616) a web server needs to put a
timestamp in a response to a web browser request. In web browsers you
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment