diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-12-20 05:16:44 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-12-20 05:16:44 +0000 |
commit | 1732c6978e3576fb9d690f45f428ead3eeea0740 (patch) | |
tree | 4ea430d78e8aab3a580ad9f693f9e26addfcb3fd /pym/_emerge/__init__.py | |
parent | dcb33edbdf01256d2f2cb3f40cf0fa7ecbb0f470 (diff) | |
download | portage-1732c6978e3576fb9d690f45f428ead3eeea0740.tar.gz portage-1732c6978e3576fb9d690f45f428ead3eeea0740.tar.bz2 portage-1732c6978e3576fb9d690f45f428ead3eeea0740.zip |
Make some adjustments so that it's possible to install binary
packages without having a portage tree:
* Make portdbapi.aux_get() return early by raising a KeyError
if it detects that there is no portage tree.
* Move the ARCH and USERLAND sanity check to the last moment
in doebuild() and only require these variables if an
existing environment (such as environment.bz2) is
unavailable.
* Make the NewsManager constructor cope with a broken
make.profile symlink.
svn path=/main/trunk/; revision=8973
Diffstat (limited to 'pym/_emerge/__init__.py')
-rw-r--r-- | pym/_emerge/__init__.py | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index 85b0566b6..36c3234a9 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -6671,18 +6671,7 @@ def parse_opts(tmpcmdline, silent=False): return myaction, myopts, myfiles def validate_ebuild_environment(trees): - for myroot in trees: - mysettings = trees[myroot]["vartree"].settings - for var in "ARCH", "USERLAND": - if mysettings.get(var): - continue - print >> sys.stderr, bad(("\a!!! %s is not set... " % var) + \ - "Are you missing the '%setc/make.profile' symlink?" % \ - mysettings["PORTAGE_CONFIGROOT"]) - print >> sys.stderr, bad("\a!!! Is the symlink correct? " + \ - "Is your portage tree complete?\n") - sys.exit(9) - del myroot, mysettings + pass def load_emerge_config(trees=None): kwargs = {} |