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 1RGy1I-0000ps-7T for garchives@archives.gentoo.org; Thu, 20 Oct 2011 19:11:12 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1B9C021C026; Thu, 20 Oct 2011 19:11:04 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id E3F3621C026 for ; Thu, 20 Oct 2011 19:11:03 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6135A1B4013 for ; Thu, 20 Oct 2011 19:11:03 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id CA97780042 for ; Thu, 20 Oct 2011 19:11:02 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <0f261405f63cd09639728da78e70a254cd3c5320.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: pym/repoman/ X-VCS-Repository: proj/portage X-VCS-Files: pym/repoman/utilities.py X-VCS-Directories: pym/repoman/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 0f261405f63cd09639728da78e70a254cd3c5320 Date: Thu, 20 Oct 2011 19:11:02 +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: 0c81dbc833d798561483d9a84d8e0ea7 commit: 0f261405f63cd09639728da78e70a254cd3c5320 Author: Zac Medico gentoo org> AuthorDate: Thu Oct 20 19:10:50 2011 +0000 Commit: Zac Medico gentoo org> CommitDate: Thu Oct 20 19:10:50 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3D0f261405 UpdateChangeLog: time in UTC --- pym/repoman/utilities.py | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/pym/repoman/utilities.py b/pym/repoman/utilities.py index 588ca8d..c8cbba7 100644 --- a/pym/repoman/utilities.py +++ b/pym/repoman/utilities.py @@ -560,6 +560,8 @@ def UpdateChangeLog(pkgdir, category, package, new, r= emoved, changed, msg, prete except EnvironmentError: clold_file =3D None =20 + # ChangeLog times are in UTC + gmtime =3D time.gmtime() f, clnew_path =3D mkstemp() =20 # create an empty ChangeLog.new with correct header first @@ -570,7 +572,7 @@ def UpdateChangeLog(pkgdir, category, package, new, r= emoved, changed, msg, prete if clold_file is None: header_lines.append(_unicode_decode('# ChangeLog for %s/%s\n' % (category, package))) - year =3D time.strftime('%Y') + year =3D time.strftime('%Y', gmtime) header_lines.append(_unicode_decode('# Copyright 1999-' '%s Gentoo Foundation; Distributed under the GPL v2\n' % year)) header_lines.append(_unicode_decode('# $Header: $\n')) @@ -589,11 +591,11 @@ def UpdateChangeLog(pkgdir, category, package, new,= removed, changed, msg, prete old_header_lines =3D header_lines[:] if len(header_lines) >=3D 2: header_lines[1] =3D re.sub(r'^(# Copyright \d\d\d\d)-\d\d\d\d ', - r'\1-%s ' % time.strftime('%Y'), header_lines[1]) + r'\1-%s ' % time.strftime('%Y', gmtime), header_lines[1]) =20 # write new ChangeLog entry clnew_lines.extend(header_lines) - date =3D time.strftime('%d %b %Y') + date =3D time.strftime('%d %b %Y', gmtime) newebuild =3D False for fn in new: if not fn.endswith('.ebuild'):