summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-03-02 20:32:09 +0000
committerZac Medico <zmedico@gentoo.org>2010-03-02 20:32:09 +0000
commit5337b7b1716baba5afdab6a49df653a0ea1bfbec (patch)
tree4450feb33cabaf73f07e1d4cabd529568dd81d56
parent8110dd32a465a0f09f336788766b0d91b81c3673 (diff)
downloadportage-5337b7b1716baba5afdab6a49df653a0ea1bfbec.tar.gz
portage-5337b7b1716baba5afdab6a49df653a0ea1bfbec.tar.bz2
portage-5337b7b1716baba5afdab6a49df653a0ea1bfbec.zip
Remove the deprecated 'clone' parameter to the binarytree constructor.
(trunk r15375) svn path=/main/branches/2.1.7/; revision=15602
-rw-r--r--pym/portage/dbapi/bintree.py16
1 files changed, 2 insertions, 14 deletions
diff --git a/pym/portage/dbapi/bintree.py b/pym/portage/dbapi/bintree.py
index 3062e4bfe..f3b7b00de 100644
--- a/pym/portage/dbapi/bintree.py
+++ b/pym/portage/dbapi/bintree.py
@@ -150,20 +150,8 @@ class bindbapi(fakedbapi):
class binarytree(object):
"this tree scans for a list of all packages available in PKGDIR"
- def __init__(self, root, pkgdir, virtual=None, settings=None, clone=None):
- if clone:
- writemsg("binartree.__init__(): deprecated " + \
- "use of clone parameter\n", noiselevel=-1)
- # XXX This isn't cloning. It's an instance of the same thing.
- self.root = clone.root
- self.pkgdir = clone.pkgdir
- self.dbapi = clone.dbapi
- self.populated = clone.populated
- self.tree = clone.tree
- self.remotepkgs = clone.remotepkgs
- self.invalids = clone.invalids
- self.settings = clone.settings
- else:
+ def __init__(self, root, pkgdir, virtual=None, settings=None):
+ if True:
self.root = root
#self.pkgdir=settings["PKGDIR"]
self.pkgdir = normalize_path(pkgdir)