summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-10-25 22:41:27 +0000
committerZac Medico <zmedico@gentoo.org>2009-10-25 22:41:27 +0000
commit003694bff44de29128e4c7e8fb56f0cb7a3433e9 (patch)
treee11e1f1679f7b3d67beebf376059626dad0222b0 /bin
parentDon't set mtime on downloaded metadata.dtd when using python3, since the (diff)
downloadportage-idfetch-003694bff44de29128e4c7e8fb56f0cb7a3433e9.tar.gz
portage-idfetch-003694bff44de29128e4c7e8fb56f0cb7a3433e9.tar.bz2
portage-idfetch-003694bff44de29128e4c7e8fb56f0cb7a3433e9.zip
Use calendar.timegm instead of time.mktime, for correct timezone handling.
svn path=/main/trunk/; revision=14728
Diffstat (limited to 'bin')
-rwxr-xr-xbin/repoman3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/repoman b/bin/repoman
index 7dee4fe8..9a016896 100755
--- a/bin/repoman
+++ b/bin/repoman
@@ -9,6 +9,7 @@
from __future__ import print_function
+import calendar
import codecs
try:
from subprocess import getstatusoutput as subprocess_getstatusoutput
@@ -824,7 +825,7 @@ def fetch_metadata_dtd():
elif last_modified is not None:
last_modified = parsedate(last_modified)
if last_modified is not None:
- last_modified = time.mktime(last_modified)
+ last_modified = calendar.timegm(last_modified)
metadata_dtd_tmp = "%s.%s" % (metadata_dtd, os.getpid())
try: