diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-05-30 22:40:55 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-05-30 22:40:55 +0000 |
commit | 5dd00bf58f6000404a0559a7e7dc09ef9efacbc4 (patch) | |
tree | e51f189145d1198b87548bf2162e142f8c3600cf /pym/portage.py | |
parent | 8cefac9de5405b276662db01c0586c246fd69430 (diff) | |
download | portage-5dd00bf58f6000404a0559a7e7dc09ef9efacbc4.tar.gz portage-5dd00bf58f6000404a0559a7e7dc09ef9efacbc4.tar.bz2 portage-5dd00bf58f6000404a0559a7e7dc09ef9efacbc4.zip |
Show deprecation warnings if the "clone" parameters are used for the binartree, vartree, or portagetree constructors. (trunk r6676)
svn path=/main/branches/2.1.2/; revision=6677
Diffstat (limited to 'pym/portage.py')
-rw-r--r-- | pym/portage.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pym/portage.py b/pym/portage.py index ecf14c703..199dac8fc 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -4709,6 +4709,8 @@ class portagetree: def __init__(self, root="/", virtual=None, clone=None, settings=None): 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 @@ -5492,6 +5494,8 @@ class vartree(object): def __init__(self, root="/", virtual=None, clone=None, categories=None, settings=None): if clone: + writemsg("vartree.__init__(): deprecated " + \ + "use of clone parameter\n", noiselevel=-1) self.root = clone.root[:] self.dbapi = copy.deepcopy(clone.dbapi) self.populated = 1 @@ -6292,6 +6296,8 @@ 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("binarytree.__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 |