diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-02-19 09:21:59 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-02-19 09:21:59 +0000 |
commit | ddc507922db5e5f11e05692dcd55a7cc5809be61 (patch) | |
tree | cadb36b1adeb97499ccc1e9f2a902533cf634f2e | |
parent | 3410931856ac66756df378a8889d91c28bedf8d7 (diff) | |
download | portage-ddc507922db5e5f11e05692dcd55a7cc5809be61.tar.gz portage-ddc507922db5e5f11e05692dcd55a7cc5809be61.tar.bz2 portage-ddc507922db5e5f11e05692dcd55a7cc5809be61.zip |
Remove the deprecated 'clone' parameter from the portagetree constructor.
svn path=/main/trunk/; revision=15378
-rw-r--r-- | pym/portage/dbapi/porttree.py | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/pym/portage/dbapi/porttree.py b/pym/portage/dbapi/porttree.py index 830cef4a5..a4cf16fc0 100644 --- a/pym/portage/dbapi/porttree.py +++ b/pym/portage/dbapi/porttree.py @@ -1176,7 +1176,7 @@ def close_portdbapi_caches(): i.close_caches() class portagetree(object): - def __init__(self, root="/", virtual=None, clone=None, settings=None): + def __init__(self, root="/", virtual=None, settings=None): """ Constructor for a PortageTree @@ -1184,19 +1184,11 @@ class portagetree(object): @type root: String/Path @param virtual: UNUSED @type virtual: No Idea - @param clone: Set this if you want a copy of Clone - @type clone: Existing portagetree Instance @param settings: Portage Configuration object (portage.settings) @type settings: Instance of portage.config """ - if clone: - writemsg("portagetree.__init__(): deprecated " + \ - "use of clone parameter\n", noiselevel=-1) - self.root = clone.root - self.portroot = clone.portroot - self.pkglines = clone.pkglines - else: + if True: self.root = root if settings is None: from portage import settings |