Move the ARCH sanity check from the depgraph constructor to a new validate_ebuild_env...
authorZac Medico <zmedico@gentoo.org>
Thu, 6 Jul 2006 02:30:31 +0000 (02:30 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 6 Jul 2006 02:30:31 +0000 (02:30 -0000)
commit726e4b3d1b313e8d5aee7b612a288bdc58cc79ea
treef3b56a8fa84d6f060e6374c16ff6bb7fa8f2f54c
parent30be11db252fa8251abb72b87a69ef996abf02fd
Move the ARCH sanity check from the depgraph constructor to a new validate_ebuild_environment() function and call it before any action that requires an ebuild environment (including search, which may result in metadata generation). So, --sync, --metadata, and --info are currently the only actions that are allowed without ARCH being defined.

svn path=/main/trunk/; revision=3796
bin/emerge