From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QGKus-0006er-5H for garchives@archives.gentoo.org; Sun, 01 May 2011 00:53:42 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D0D1B1C00A; Sun, 1 May 2011 00:53:33 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id A32971C00A for ; Sun, 1 May 2011 00:53:33 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E84381B400A for ; Sun, 1 May 2011 00:53:32 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 3017180505 for ; Sun, 1 May 2011 00:53:32 +0000 (UTC) From: "Brian Dolbec" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Dolbec" Message-ID: Subject: [gentoo-commits] proj/layman:master commit in: layman/ X-VCS-Repository: proj/layman X-VCS-Files: layman/db.py X-VCS-Directories: layman/ X-VCS-Committer: dol-sen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: fa6bee894b2259941b2ca233fee1c07fed487d73 Date: Sun, 1 May 2011 00:53:32 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: d32fb2b58a52ad3696100da175f50bce commit: fa6bee894b2259941b2ca233fee1c07fed487d73 Author: dol-sen gmail com> AuthorDate: Sun May 1 00:53:35 2011 +0000 Commit: Brian Dolbec gmail com> CommitDate: Sun May 1 00:53:35 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/layman.git;a=3D= commit;h=3Dfa6bee89 Add the timestamp and url to the RemoteDB.cache() outputs. --- layman/db.py | 5 +++-- 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): =20 if os.path.exists(tpath): with open(tpath,'r') as previous: - last_time =3D previous.read() - request.add_header('If-Modified-Since', last_time) + timestamp =3D previous.read() + request.add_header('If-Modified-Since', timestamp) =20 if not self.check_path([mpath]): continue @@ -313,6 +313,7 @@ class RemoteDB(DbBase): if e.getcode() =3D=3D 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))