Gentoo Archives: gentoo-commits

From: "Arfrever Frehtes Taifersar Arahesis (arfrever)" <arfrever@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] portage r15429 - main/trunk/pym/portage/dbapi
Date: Mon, 22 Feb 2010 10:44:26
Message-Id: E1NjVm4-0005Qo-C8@stork.gentoo.org
1 Author: arfrever
2 Date: 2010-02-22 10:44:23 +0000 (Mon, 22 Feb 2010)
3 New Revision: 15429
4
5 Modified:
6 main/trunk/pym/portage/dbapi/porttree.py
7 Log:
8 Fix "AttributeError: 'module' object has no attribute 'mappings'".
9 Also fix some typos.
10
11
12 Modified: main/trunk/pym/portage/dbapi/porttree.py
13 ===================================================================
14 --- main/trunk/pym/portage/dbapi/porttree.py 2010-02-22 10:24:53 UTC (rev 15428)
15 +++ main/trunk/pym/portage/dbapi/porttree.py 2010-02-22 10:44:23 UTC (rev 15429)
16 @@ -18,6 +18,7 @@
17 )
18
19 from portage.cache.cache_errors import CacheError
20 +from portage.cache.mappings import Mapping
21 from portage.const import REPO_NAME_LOC
22 from portage.data import portage_gid, secpass
23 from portage.dbapi import dbapi
24 @@ -127,17 +128,17 @@
25 _use_mutable = True
26
27 def _get_settings(self):
28 - warnings.warn("Use portdbapi.settings insead of portdbapi.mysettings",
29 + warnings.warn("Use portdbapi.settings instead of portdbapi.mysettings",
30 DeprecationWarning)
31 return self.settings
32
33 def _set_settings(self, settings):
34 - warnings.warn("Use portdbapi.settings insead of portdbapi.mysettings",
35 + warnings.warn("Use portdbapi.settings instead of portdbapi.mysettings",
36 DeprecationWarning)
37 self.settings = settings
38
39 def _del_settings (self):
40 - warnings.warn("Use portdbapi.settings insead of portdbapi.mysettings",
41 + warnings.warn("Use portdbapi.settings instead of portdbapi.mysettings",
42 DeprecationWarning)
43 del self.settings
44
45 @@ -1243,7 +1244,7 @@
46 pass
47 return myslot
48
49 -class FetchlistDict(portage.cache.mappings.Mapping):
50 +class FetchlistDict(Mapping):
51 """
52 This provide a mapping interface to retrieve fetch lists. It's used
53 to allow portage.manifest.Manifest to access fetch lists via a standard