diff options
author | Marius Mauch <genone@gentoo.org> | 2007-02-17 13:11:28 +0000 |
---|---|---|
committer | Marius Mauch <genone@gentoo.org> | 2007-02-17 13:11:28 +0000 |
commit | 344c94a32baf1fec5ac650aa7475adc643887915 (patch) | |
tree | 277a78549b214fda290fca7ae18c3a9de7d29dc2 /pym/portage_exec.py | |
parent | 68773e9cf59e167574cbb8c12f2e1a44055b5ce0 (diff) | |
download | portage-344c94a32baf1fec5ac650aa7475adc643887915.tar.gz portage-344c94a32baf1fec5ac650aa7475adc643887915.tar.bz2 portage-344c94a32baf1fec5ac650aa7475adc643887915.zip |
Replace compat symlinks with a new compat module as the symlink solution prevents reuse of state information (requested by ferringb)
svn path=/main/trunk/; revision=5981
Diffstat (limited to 'pym/portage_exec.py')
-rw-r--r-- | pym/portage_exec.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/pym/portage_exec.py b/pym/portage_exec.py new file mode 100644 index 000000000..30b5cdfd8 --- /dev/null +++ b/pym/portage_exec.py @@ -0,0 +1,15 @@ +# 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 |