summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-10-20 12:10:50 -0700
committerZac Medico <zmedico@gentoo.org>2011-10-20 12:10:50 -0700
commit0f261405f63cd09639728da78e70a254cd3c5320 (patch)
tree6cc2c24a2152153065c024e044f22e520726fd8b
parent7f9e716d4198f90032d91e8e8adfbc6d7673883c (diff)
downloadportage-0f261405f63cd09639728da78e70a254cd3c5320.tar.gz
portage-0f261405f63cd09639728da78e70a254cd3c5320.tar.bz2
portage-0f261405f63cd09639728da78e70a254cd3c5320.zip
UpdateChangeLog: time in UTC
-rw-r--r--pym/repoman/utilities.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/pym/repoman/utilities.py b/pym/repoman/utilities.py
index 588ca8d82..c8cbba730 100644
--- a/pym/repoman/utilities.py
+++ b/pym/repoman/utilities.py
@@ -560,6 +560,8 @@ def UpdateChangeLog(pkgdir, category, package, new, removed, changed, msg, prete
except EnvironmentError:
clold_file = None
+ # ChangeLog times are in UTC
+ gmtime = time.gmtime()
f, clnew_path = mkstemp()
# create an empty ChangeLog.new with correct header first
@@ -570,7 +572,7 @@ def UpdateChangeLog(pkgdir, category, package, new, removed, changed, msg, prete
if clold_file is None:
header_lines.append(_unicode_decode('# ChangeLog for %s/%s\n' %
(category, package)))
- year = time.strftime('%Y')
+ year = 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 = header_lines[:]
if len(header_lines) >= 2:
header_lines[1] = 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])
# write new ChangeLog entry
clnew_lines.extend(header_lines)
- date = time.strftime('%d %b %Y')
+ date = time.strftime('%d %b %Y', gmtime)
newebuild = False
for fn in new:
if not fn.endswith('.ebuild'):