1 |
commit: ac4d4449321e777f090ea415bba723ee4440ff8b |
2 |
Author: Sebastian Luther <SebastianLuther <AT> gmx <DOT> de> |
3 |
AuthorDate: Fri Nov 29 18:02:22 2013 +0000 |
4 |
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Nov 29 23:24:49 2013 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=ac4d4449 |
7 |
|
8 |
Use portage.const.TIMESTAMP_FORMAT where appropriate |
9 |
|
10 |
--- |
11 |
pym/_emerge/actions.py | 6 +++--- |
12 |
1 file changed, 3 insertions(+), 3 deletions(-) |
13 |
|
14 |
diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py |
15 |
index 86d67d2..9bb4774 100644 |
16 |
--- a/pym/_emerge/actions.py |
17 |
+++ b/pym/_emerge/actions.py |
18 |
@@ -39,7 +39,7 @@ from portage import shutil |
19 |
from portage import eapi_is_supported, _encodings, _unicode_decode |
20 |
from portage.cache.cache_errors import CacheError |
21 |
from portage.const import GLOBAL_CONFIG_PATH, VCS_DIRS, _DEPCLEAN_LIB_CHECK_DEFAULT |
22 |
-from portage.const import SUPPORTED_BINPKG_FORMATS |
23 |
+from portage.const import SUPPORTED_BINPKG_FORMATS, TIMESTAMP_FORMAT |
24 |
from portage.dbapi.dep_expand import dep_expand |
25 |
from portage.dbapi._expand_new_virt import expand_new_virt |
26 |
from portage.dep import Atom |
27 |
@@ -2282,7 +2282,7 @@ def _sync_repo(emerge_config, repo): |
28 |
if content: |
29 |
try: |
30 |
mytimestamp = time.mktime(time.strptime(content[0], |
31 |
- "%a, %d %b %Y %H:%M:%S +0000")) |
32 |
+ TIMESTAMP_FORMAT)) |
33 |
except (OverflowError, ValueError): |
34 |
pass |
35 |
del content |
36 |
@@ -2511,7 +2511,7 @@ def _sync_repo(emerge_config, repo): |
37 |
if content: |
38 |
try: |
39 |
servertimestamp = time.mktime(time.strptime( |
40 |
- content[0], "%a, %d %b %Y %H:%M:%S +0000")) |
41 |
+ content[0], TIMESTAMP_FORMAT)) |
42 |
except (OverflowError, ValueError): |
43 |
pass |
44 |
del mycommand, mypids, content |