diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/archive-conf | 3 | ||||
-rwxr-xr-x | bin/binhost-snapshot | 3 | ||||
-rwxr-xr-x | bin/clean_locks | 3 | ||||
-rwxr-xr-x | bin/dispatch-conf | 3 | ||||
-rwxr-xr-x | bin/ebuild | 4 | ||||
-rwxr-xr-x | bin/ebuild-ipc.py | 3 | ||||
-rwxr-xr-x | bin/egencache | 3 | ||||
-rwxr-xr-x | bin/emaint | 3 | ||||
-rwxr-xr-x | bin/emerge | 5 | ||||
-rwxr-xr-x | bin/env-update | 3 | ||||
-rwxr-xr-x | bin/fixpackages | 3 | ||||
-rwxr-xr-x | bin/glsa-check | 3 | ||||
-rwxr-xr-x | bin/lock-helper.py | 3 | ||||
-rwxr-xr-x | bin/portageq | 3 | ||||
-rwxr-xr-x | bin/quickpkg | 3 | ||||
-rwxr-xr-x | bin/regenworld | 3 | ||||
-rwxr-xr-x | bin/repoman | 4 | ||||
-rwxr-xr-x | bin/xpak-helper.py | 3 |
18 files changed, 38 insertions, 20 deletions
diff --git a/bin/archive-conf b/bin/archive-conf index 80fa308a1..2c10884ea 100755 --- a/bin/archive-conf +++ b/bin/archive-conf @@ -1,5 +1,5 @@ #!/usr/bin/python -# Copyright 1999-2012 Gentoo Foundation +# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # @@ -17,6 +17,7 @@ from os import path as osp pym_path = osp.join(osp.dirname(osp.dirname(osp.realpath(__file__))), "pym") sys.path.insert(0, pym_path) import portage +portage._internal_caller = True from portage import os from portage import dispatch_conf diff --git a/bin/binhost-snapshot b/bin/binhost-snapshot index fe2cf6b53..e9bd45a2f 100755 --- a/bin/binhost-snapshot +++ b/bin/binhost-snapshot @@ -1,5 +1,5 @@ #!/usr/bin/python -# Copyright 2010-2012 Gentoo Foundation +# Copyright 2010-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 import io @@ -17,6 +17,7 @@ from os import path as osp pym_path = osp.join(osp.dirname(osp.dirname(osp.realpath(__file__))), "pym") sys.path.insert(0, pym_path) import portage +portage._internal_caller = True def parse_args(argv): prog_name = os.path.basename(argv[0]) diff --git a/bin/clean_locks b/bin/clean_locks index 09ee3e516..0a9791852 100755 --- a/bin/clean_locks +++ b/bin/clean_locks @@ -1,5 +1,5 @@ #!/usr/bin/python -O -# Copyright 1999-2012 Gentoo Foundation +# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 from __future__ import print_function @@ -9,6 +9,7 @@ from os import path as osp pym_path = osp.join(osp.dirname(osp.dirname(osp.realpath(__file__))), "pym") sys.path.insert(0, pym_path) import portage +portage._internal_caller = True from portage import os if not sys.argv[1:] or "--help" in sys.argv or "-h" in sys.argv: diff --git a/bin/dispatch-conf b/bin/dispatch-conf index 479647ede..e44c0eac8 100755 --- a/bin/dispatch-conf +++ b/bin/dispatch-conf @@ -1,5 +1,5 @@ #!/usr/bin/python -O -# Copyright 1999-2012 Gentoo Foundation +# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # @@ -20,6 +20,7 @@ from os import path as osp pym_path = osp.join(osp.dirname(osp.dirname(osp.realpath(__file__))), "pym") sys.path.insert(0, pym_path) import portage +portage._internal_caller = True from portage import os from portage import dispatch_conf from portage import _unicode_decode diff --git a/bin/ebuild b/bin/ebuild index 36580bf3f..754b9a9bd 100755 --- a/bin/ebuild +++ b/bin/ebuild @@ -1,5 +1,5 @@ #!/usr/bin/python -O -# Copyright 1999-2012 Gentoo Foundation +# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 from __future__ import print_function @@ -68,7 +68,7 @@ from os import path as osp pym_path = osp.join(osp.dirname(osp.dirname(osp.realpath(__file__))), "pym") sys.path.insert(0, pym_path) import portage -portage._internal_warnings = True +portage._internal_caller = True from portage import os from portage import _encodings from portage import _shell_quote diff --git a/bin/ebuild-ipc.py b/bin/ebuild-ipc.py index 3caf2d185..52ea05ced 100755 --- a/bin/ebuild-ipc.py +++ b/bin/ebuild-ipc.py @@ -1,5 +1,5 @@ #!/usr/bin/python -# Copyright 2010-2012 Gentoo Foundation +# Copyright 2010-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # # This is a helper which ebuild processes can use @@ -38,6 +38,7 @@ if os.environ.get("SANDBOX_ON") == "1": ":".join(filter(None, sandbox_write)) import portage +portage._internal_caller = True portage._disable_legacy_globals() class EbuildIpc(object): diff --git a/bin/egencache b/bin/egencache index 110c47dcd..87673a0a0 100755 --- a/bin/egencache +++ b/bin/egencache @@ -1,5 +1,5 @@ #!/usr/bin/python -# Copyright 2009-2012 Gentoo Foundation +# Copyright 2009-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 from __future__ import print_function @@ -44,6 +44,7 @@ from os import path as osp pym_path = osp.join(osp.dirname(osp.dirname(osp.realpath(__file__))), "pym") sys.path.insert(0, pym_path) import portage +portage._internal_caller = True from portage import os, _encodings, _unicode_encode, _unicode_decode from _emerge.MetadataRegen import MetadataRegen from portage.cache.cache_errors import CacheError, StatCollision diff --git a/bin/emaint b/bin/emaint index fd9f346b2..bc1b92f22 100755 --- a/bin/emaint +++ b/bin/emaint @@ -1,5 +1,5 @@ #!/usr/bin/python -O -# Copyright 2005-2012 Gentoo Foundation +# Copyright 2005-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 """'The emaint program provides an interface to system health @@ -30,6 +30,7 @@ from os import path as osp pym_path = osp.join(osp.dirname(osp.dirname(osp.realpath(__file__))), "pym") sys.path.insert(0, pym_path) import portage +portage._internal_caller = True from portage.emaint.main import emaint_main try: diff --git a/bin/emerge b/bin/emerge index b749b0a8e..fc85d584e 100755 --- a/bin/emerge +++ b/bin/emerge @@ -1,5 +1,5 @@ #!/usr/bin/python -# Copyright 2006-2012 Gentoo Foundation +# Copyright 2006-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 from __future__ import print_function @@ -39,6 +39,9 @@ try: pym_path = osp.join(osp.dirname(osp.dirname( osp.realpath(__file__))), "pym") sys.path.insert(0, pym_path) + import portage + portage._internal_caller = True + portage._disable_legacy_globals() from _emerge.main import emerge_main if __name__ == "__main__": diff --git a/bin/env-update b/bin/env-update index cee3fd683..b500c545c 100755 --- a/bin/env-update +++ b/bin/env-update @@ -1,5 +1,5 @@ #!/usr/bin/python -O -# Copyright 1999-2012 Gentoo Foundation +# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 from __future__ import print_function @@ -29,6 +29,7 @@ from os import path as osp pym_path = osp.join(osp.dirname(osp.dirname(osp.realpath(__file__))), "pym") sys.path.insert(0, pym_path) import portage +portage._internal_caller = True try: portage.env_update(makelinks) diff --git a/bin/fixpackages b/bin/fixpackages index da08520e5..e224b62c2 100755 --- a/bin/fixpackages +++ b/bin/fixpackages @@ -1,5 +1,5 @@ #!/usr/bin/python -# Copyright 1999-2012 Gentoo Foundation +# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 from __future__ import print_function @@ -11,6 +11,7 @@ from os import path as osp pym_path = osp.join(osp.dirname(osp.dirname(osp.realpath(__file__))), "pym") sys.path.insert(0, pym_path) import portage +portage._internal_caller = True from portage import os from portage.output import EOutput from textwrap import wrap diff --git a/bin/glsa-check b/bin/glsa-check index b3eb14689..ed0df3586 100755 --- a/bin/glsa-check +++ b/bin/glsa-check @@ -1,5 +1,5 @@ #!/usr/bin/python -# Copyright 2008-2012 Gentoo Foundation +# Copyright 2008-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 from __future__ import print_function @@ -10,6 +10,7 @@ from os import path as osp pym_path = osp.join(osp.dirname(osp.dirname(osp.realpath(__file__))), "pym") sys.path.insert(0, pym_path) import portage +portage._internal_caller = True from portage import os from portage.output import * diff --git a/bin/lock-helper.py b/bin/lock-helper.py index dfb887669..128e4ddd0 100755 --- a/bin/lock-helper.py +++ b/bin/lock-helper.py @@ -1,11 +1,12 @@ #!/usr/bin/python -# Copyright 2010-2011 Gentoo Foundation +# Copyright 2010-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 import os import sys sys.path.insert(0, os.environ['PORTAGE_PYM_PATH']) import portage +portage._internal_caller = True portage._disable_legacy_globals() def main(args): diff --git a/bin/portageq b/bin/portageq index 7b5c2cd31..ee776ef4f 100755 --- a/bin/portageq +++ b/bin/portageq @@ -1,5 +1,5 @@ #!/usr/bin/python -O -# Copyright 1999-2012 Gentoo Foundation +# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 from __future__ import print_function @@ -36,6 +36,7 @@ if os.environ.get("SANDBOX_ON") == "1": sys.path.insert(0, pym_path) import portage +portage._internal_caller = True from portage import os from portage.eapi import eapi_has_repo_deps from portage.util import writemsg, writemsg_stdout diff --git a/bin/quickpkg b/bin/quickpkg index a6439e282..19d90b0d3 100755 --- a/bin/quickpkg +++ b/bin/quickpkg @@ -1,5 +1,5 @@ #!/usr/bin/python -# Copyright 1999-2012 Gentoo Foundation +# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 from __future__ import print_function @@ -15,6 +15,7 @@ from os import path as osp pym_path = osp.join(osp.dirname(osp.dirname(osp.realpath(__file__))), "pym") sys.path.insert(0, pym_path) import portage +portage._internal_caller = True from portage import os from portage import xpak from portage.dbapi.dep_expand import dep_expand diff --git a/bin/regenworld b/bin/regenworld index a2833445a..f74b3dde0 100755 --- a/bin/regenworld +++ b/bin/regenworld @@ -1,5 +1,5 @@ #!/usr/bin/python -# Copyright 1999-2012 Gentoo Foundation +# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 from __future__ import print_function @@ -9,6 +9,7 @@ from os import path as osp pym_path = osp.join(osp.dirname(osp.dirname(osp.realpath(__file__))), "pym") sys.path.insert(0, pym_path) import portage +portage._internal_caller = True from portage import os from portage._sets.files import StaticFileSet, WorldSelectedSet diff --git a/bin/repoman b/bin/repoman index 57ddf72fe..4c00d5bca 100755 --- a/bin/repoman +++ b/bin/repoman @@ -1,5 +1,5 @@ #!/usr/bin/python -O -# Copyright 1999-2012 Gentoo Foundation +# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # Next to do: dep syntax checking in mask files @@ -38,8 +38,8 @@ from os import path as osp pym_path = osp.join(osp.dirname(osp.dirname(osp.realpath(__file__))), "pym") sys.path.insert(0, pym_path) import portage +portage._internal_caller = True portage._disable_legacy_globals() -portage._internal_warnings = True try: import xml.etree.ElementTree diff --git a/bin/xpak-helper.py b/bin/xpak-helper.py index ef74920db..7a3865c10 100755 --- a/bin/xpak-helper.py +++ b/bin/xpak-helper.py @@ -1,10 +1,11 @@ #!/usr/bin/python -# Copyright 2009-2011 Gentoo Foundation +# Copyright 2009-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 import optparse import sys import portage +portage._internal_caller = True from portage import os def command_recompose(args): |