summaryrefslogtreecommitdiffstats
path: root/layman/db.py
diff options
context:
space:
mode:
authordol-sen <brian.dolbec@gmail.com>2011-04-30 17:53:35 -0700
committerdol-sen <brian.dolbec@gmail.com>2011-04-30 17:53:35 -0700
commitfa6bee894b2259941b2ca233fee1c07fed487d73 (patch)
tree46ebac2d665d3113b64664b644ae9eb6b3543489 /layman/db.py
parentd1520e65968d61eb100133ab1248e00bc79ac3e9 (diff)
downloadlayman-fa6bee894b2259941b2ca233fee1c07fed487d73.tar.gz
layman-fa6bee894b2259941b2ca233fee1c07fed487d73.tar.bz2
layman-fa6bee894b2259941b2ca233fee1c07fed487d73.zip
Add the timestamp and url to the RemoteDB.cache() outputs.
Diffstat (limited to 'layman/db.py')
-rw-r--r--layman/db.py5
1 files 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))