summaryrefslogtreecommitdiff
blob: 66d00b2a60896a58cdb67f400b22ca648b6a33bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
https://bugs.gentoo.org/show_bug.cgi?id=449916#c1

diff -uNr goobook-1.4.old/goobook/goobook.py goobook-1.4/goobook/goobook.py
--- goobook-1.4.old/goobook/goobook.py	2012-11-10 08:00:44.000000000 -0500
+++ goobook-1.4/goobook/goobook.py	2013-07-06 23:27:02.091729438 -0400
@@ -37,11 +37,11 @@
 import time
 import xml.etree.ElementTree as ET
 
-from hcs_utils.storage import Storage
+from hcs_utils.storage import Storage, storageify, unstorageify
 
 log = logging.getLogger(__name__)
 
-CACHE_FORMAT_VERSION = '3.2'
+CACHE_FORMAT_VERSION = '4.0'
 G_MAX_SRESULTS = 9999 # Maximum number of entries to ask google for.
 GDATA_VERSION = '3'
 ATOM_NS = '{http://www.w3.org/2005/Atom}'
@@ -243,8 +243,8 @@
                 log.info('Failed to read the cache file: %s', err)
                 raise
         if cache:
-            self.contacts = cache.get('contacts')
-            self.groups = cache.get('groups')
+            self.contacts = storageify(cache.get('contacts'))
+            self.groups = storageify(cache.get('groups'))
         else:
             self.update()
         if not self.contacts:
@@ -262,7 +262,7 @@
 
         """
         if self.contacts: # never write a empty addressbook
-            cache = {'contacts': self.contacts, 'groups': self.groups, 'goobook_cache': CACHE_FORMAT_VERSION}
+            cache = {'contacts': unstorageify(self.contacts), 'groups': unstorageify(self.groups), 'goobook_cache': CACHE_FORMAT_VERSION}
             pickle.dump(cache, open(self.__config.cache_filename, 'wb'))
 
     def get_group(self, id_):
diff -uNr goobook-1.4.old/goobook.egg-info/requires.txt goobook-1.4/goobook.egg-info/requires.txt
--- goobook-1.4.old/goobook.egg-info/requires.txt	2012-11-10 08:01:54.000000000 -0500
+++ goobook-1.4/goobook.egg-info/requires.txt	2013-07-06 23:29:30.206725062 -0400
@@ -1,6 +1,5 @@
-argparse>=1.1
 distribute
 gdata>=2.0.7
-hcs_utils==1.1.1
+hcs_utils>=1.3
 simplejson>=2.1.0
 keyring>=0.2
\ No newline at end of file
diff -uNr goobook-1.4.old/setup.py goobook-1.4/setup.py
--- goobook-1.4.old/setup.py	2012-11-10 08:00:44.000000000 -0500
+++ goobook-1.4/setup.py	2013-07-06 23:27:45.351728160 -0400
@@ -58,10 +58,9 @@
         """.splitlines() if f.strip()],
       license = 'GPLv3',
       install_requires = [
-          'argparse>=1.1',
           'distribute',
           'gdata>=2.0.7',
-          'hcs_utils==1.1.1',
+          'hcs_utils>=1.3',
           'simplejson>=2.1.0',
           'keyring>=0.2'],
       packages = find_packages(),