Show a deprecation warning when pkgmerge() is called.
authorZac Medico <zmedico@gentoo.org>
Sun, 21 Feb 2010 09:32:15 +0000 (09:32 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 21 Feb 2010 09:32:15 +0000 (09:32 -0000)
svn path=/main/trunk/; revision=15415

pym/portage/__init__.py

index 8b9ee31608412a59b57e50e1b01b92c22b3537e6..8af1bb4b1d1878d99457ea3805386de6e0e50de6 100644 (file)
@@ -8801,6 +8801,10 @@ def pkgmerge(mytbz2, myroot, mysettings, mydbapi=None,
        """will merge a .tbz2 file, returning a list of runtime dependencies
                that must be satisfied, or None if there was a merge error.     This
                code assumes the package exists."""
+
+       warnings.warn("portage.pkgmerge() is deprecated",
+               DeprecationWarning, stacklevel=2)
+
        global db
        if mydbapi is None:
                mydbapi = db[myroot]["bintree"].dbapi