1 |
From: Sebastian Luther <SebastianLuther@×××.de> |
2 |
|
3 |
--- |
4 |
pym/_emerge/actions.py | 5 +++-- |
5 |
1 file changed, 3 insertions(+), 2 deletions(-) |
6 |
|
7 |
diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py |
8 |
index 86d67d2..19268cb 100644 |
9 |
--- a/pym/_emerge/actions.py |
10 |
+++ b/pym/_emerge/actions.py |
11 |
@@ -40,6 +40,7 @@ from portage import eapi_is_supported, _encodings, _unicode_decode |
12 |
from portage.cache.cache_errors import CacheError |
13 |
from portage.const import GLOBAL_CONFIG_PATH, VCS_DIRS, _DEPCLEAN_LIB_CHECK_DEFAULT |
14 |
from portage.const import SUPPORTED_BINPKG_FORMATS |
15 |
+from portage.const import TIMESTAMP_FORMAT |
16 |
from portage.dbapi.dep_expand import dep_expand |
17 |
from portage.dbapi._expand_new_virt import expand_new_virt |
18 |
from portage.dep import Atom |
19 |
@@ -2282,7 +2283,7 @@ def _sync_repo(emerge_config, repo): |
20 |
if content: |
21 |
try: |
22 |
mytimestamp = time.mktime(time.strptime(content[0], |
23 |
- "%a, %d %b %Y %H:%M:%S +0000")) |
24 |
+ TIMESTAMP_FORMAT)) |
25 |
except (OverflowError, ValueError): |
26 |
pass |
27 |
del content |
28 |
@@ -2511,7 +2512,7 @@ def _sync_repo(emerge_config, repo): |
29 |
if content: |
30 |
try: |
31 |
servertimestamp = time.mktime(time.strptime( |
32 |
- content[0], "%a, %d %b %Y %H:%M:%S +0000")) |
33 |
+ content[0], TIMESTAMP_FORMAT)) |
34 |
except (OverflowError, ValueError): |
35 |
pass |
36 |
del mycommand, mypids, content |
37 |
-- |
38 |
1.8.1.5 |