-portage/cvstree.py
\ No newline at end of file
+portage_compat_namespace.py
\ No newline at end of file
-portage/dispatch_conf.py
\ No newline at end of file
+portage_compat_namespace.py
\ No newline at end of file
-portage/eclass_cache.py
\ No newline at end of file
+portage_compat_namespace.py
\ No newline at end of file
-emerge/help.py
\ No newline at end of file
+portage_compat_namespace.py
\ No newline at end of file
-portage/getbinpkg.py
\ No newline at end of file
+portage_compat_namespace.py
\ No newline at end of file
-portage/output.py
\ No newline at end of file
+portage_compat_namespace.py
\ No newline at end of file
-portage/checksum.py
\ No newline at end of file
+portage_compat_namespace.py
\ No newline at end of file
--- /dev/null
+# portage_compat_namespace.py -- provide compability layer with new namespace
+# Copyright 2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+"""
+This module checks the name under which it is imported and attempts to load
+the corresponding module of the new portage namespace, inserting it into the
+loaded modules list.
+It also issues a warning to the caller to migrate to the new namespace.
+Note that this module should never be used with it's true name, but only by
+links pointing to it. Also it is limited to portage_foo -> portage.foo
+translations, however existing subpackages shouldn't use it anyway to maintain
+compability with 3rd party modules (like elog or cache plugins), and they
+shouldn't be directly imported by external consumers.
+
+This module is based on an idea by Brian Harring.
+"""
+
+import sys, warnings
+
+__oldname = __name__
+if __name__.startswith("portage_"):
+ __newname = __name__.replace("_", ".")
+else:
+ __newname = "portage."+__name__
+
+try:
+ __package = __import__(__newname, globals(), locals())
+ __realmodule = getattr(__package, __newname[8:])
+except ImportError, AttributeError:
+ raise ImportError("No module named %s" % __oldname)
+
+warnings.warn("DEPRECATION NOTICE: The %s module was replaced by %s" % (__oldname, __newname))
+sys.modules[__oldname] = __realmodule
-portage/const.py
\ No newline at end of file
+portage_compat_namespace.py
\ No newline at end of file
-portage/data.py
\ No newline at end of file
+portage_compat_namespace.py
\ No newline at end of file
-portage/debug.py
\ No newline at end of file
+portage_compat_namespace.py
\ No newline at end of file
-portage/dep.py
\ No newline at end of file
+portage_compat_namespace.py
\ No newline at end of file
-portage/exception.py
\ No newline at end of file
+portage_compat_namespace.py
\ No newline at end of file
--- /dev/null
+# portage_compat_namespace.py -- provide compability layer with new namespace
+# Copyright 2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id: portage_compat_namespace.py 5782 2007-01-25 17:07:32Z genone $
+
+"""
+Special edition of portage_compat_namespace.py as for this module we can't translate
+name automatically as "import portage.exec" is a SyntaxError.
+"""
+
+import sys, warnings
+
+import portage.process
+warnings.warn("DEPRECATION NOTICE: The portage_exec module was replaced by portage.process")
+sys.modules["portage_exec"] = portage.process
-portage/gpg.py
\ No newline at end of file
+portage_compat_namespace.py
\ No newline at end of file
-portage/localization.py
\ No newline at end of file
+portage_compat_namespace.py
\ No newline at end of file
-portage/locks.py
\ No newline at end of file
+portage_compat_namespace.py
\ No newline at end of file
-portage/mail.py
\ No newline at end of file
+portage_compat_namespace.py
\ No newline at end of file
-portage/manifest.py
\ No newline at end of file
+portage_compat_namespace.py
\ No newline at end of file
-portage/news.py
\ No newline at end of file
+portage_compat_namespace.py
\ No newline at end of file
-portage/selinux.py
\ No newline at end of file
+portage_compat_namespace.py
\ No newline at end of file
-portage/update.py
\ No newline at end of file
+portage_compat_namespace.py
\ No newline at end of file
-portage/util.py
\ No newline at end of file
+portage_compat_namespace.py
\ No newline at end of file
-portage/versions.py
\ No newline at end of file
+portage_compat_namespace.py
\ No newline at end of file
-portage/xpak.py
\ No newline at end of file
+portage_compat_namespace.py
\ No newline at end of file