From fa6bee894b2259941b2ca233fee1c07fed487d73 Mon Sep 17 00:00:00 2001 From: dol-sen Date: Sat, 30 Apr 2011 17:53:35 -0700 Subject: Add the timestamp and url to the RemoteDB.cache() outputs. --- layman/db.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/layman/db.py b/layman/db.py index 3498223..6f79e26 100644 --- a/layman/db.py +++ b/layman/db.py @@ -300,8 +300,8 @@ class RemoteDB(DbBase): if os.path.exists(tpath): with open(tpath,'r') as previous: - last_time = previous.read() - request.add_header('If-Modified-Since', last_time) + timestamp = previous.read() + request.add_header('If-Modified-Since', timestamp) if not self.check_path([mpath]): continue @@ -313,6 +313,7 @@ class RemoteDB(DbBase): if e.getcode() == 304: self.output.info('Remote list already up to date: %s' % url) + self.output.info('Last-modified: %s' % timestamp) else: self.output.info('RemoteDB.cache(); HTTPError was:\n %s' % str(e)) -- cgit v1.2.3-1-g7c22