1 |
Author: zmedico |
2 |
Date: 2009-09-06 08:02:32 +0000 (Sun, 06 Sep 2009) |
3 |
New Revision: 14207 |
4 |
|
5 |
Modified: |
6 |
main/trunk/pym/portage/dbapi/vartree.py |
7 |
Log: |
8 |
Remove unused vardbapi._counter_hash() method. |
9 |
|
10 |
|
11 |
Modified: main/trunk/pym/portage/dbapi/vartree.py |
12 |
=================================================================== |
13 |
--- main/trunk/pym/portage/dbapi/vartree.py 2009-09-06 00:31:10 UTC (rev 14206) |
14 |
+++ main/trunk/pym/portage/dbapi/vartree.py 2009-09-06 08:02:32 UTC (rev 14207) |
15 |
@@ -853,25 +853,6 @@ |
16 |
level=logging.ERROR, noiselevel=-1) |
17 |
return 0 |
18 |
|
19 |
- def _counter_hash(self): |
20 |
- try: |
21 |
- from hashlib import md5 as new_hash |
22 |
- except ImportError: |
23 |
- from md5 import new as new_hash |
24 |
- h = new_hash() |
25 |
- aux_keys = ["COUNTER"] |
26 |
- cpv_list = self.cpv_all() |
27 |
- cpv_list.sort() |
28 |
- for cpv in cpv_list: |
29 |
- try: |
30 |
- counter, = self.aux_get(cpv, aux_keys) |
31 |
- except KeyError: |
32 |
- continue |
33 |
- h.update(_unicode_encode(counter, |
34 |
- encoding=_encodings['repo.content'], |
35 |
- errors='backslashreplace')) |
36 |
- return h.hexdigest() |
37 |
- |
38 |
def cpv_inject(self, mycpv): |
39 |
"injects a real package into our on-disk database; assumes mycpv is valid and doesn't already exist" |
40 |
os.makedirs(self.getpath(mycpv)) |