1 |
Author: zmedico |
2 |
Date: 2010-02-19 09:12:30 +0000 (Fri, 19 Feb 2010) |
3 |
New Revision: 15375 |
4 |
|
5 |
Modified: |
6 |
main/trunk/pym/portage/dbapi/bintree.py |
7 |
Log: |
8 |
Remove the deprecated 'clone' parameter to the binarytree constructor. |
9 |
|
10 |
|
11 |
Modified: main/trunk/pym/portage/dbapi/bintree.py |
12 |
=================================================================== |
13 |
--- main/trunk/pym/portage/dbapi/bintree.py 2010-02-19 09:09:38 UTC (rev 15374) |
14 |
+++ main/trunk/pym/portage/dbapi/bintree.py 2010-02-19 09:12:30 UTC (rev 15375) |
15 |
@@ -150,20 +150,8 @@ |
16 |
|
17 |
class binarytree(object): |
18 |
"this tree scans for a list of all packages available in PKGDIR" |
19 |
- def __init__(self, root, pkgdir, virtual=None, settings=None, clone=None): |
20 |
- if clone: |
21 |
- writemsg("binartree.__init__(): deprecated " + \ |
22 |
- "use of clone parameter\n", noiselevel=-1) |
23 |
- # XXX This isn't cloning. It's an instance of the same thing. |
24 |
- self.root = clone.root |
25 |
- self.pkgdir = clone.pkgdir |
26 |
- self.dbapi = clone.dbapi |
27 |
- self.populated = clone.populated |
28 |
- self.tree = clone.tree |
29 |
- self.remotepkgs = clone.remotepkgs |
30 |
- self.invalids = clone.invalids |
31 |
- self.settings = clone.settings |
32 |
- else: |
33 |
+ def __init__(self, root, pkgdir, virtual=None, settings=None): |
34 |
+ if True: |
35 |
self.root = root |
36 |
#self.pkgdir=settings["PKGDIR"] |
37 |
self.pkgdir = normalize_path(pkgdir) |