Support repository dependencies in EAPI="4-python".
[portage.git] / pym / portage / dep / __init__.py
index 72411b7c7938dbbf7d4cfe98b9c9cd169094d640..389916f8e3198a6ed16301f40d84744bf71c9323 100644 (file)
@@ -1,5 +1,5 @@
 # deps.py -- Portage dependency resolution functions
-# Copyright 2003-2011 Gentoo Foundation
+# Copyright 2003-2012 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 __all__ = [
@@ -38,7 +38,8 @@ portage.proxy.lazyimport.lazyimport(globals(),
 
 from portage import _unicode_decode
 from portage.eapi import eapi_has_slot_deps, eapi_has_src_uri_arrows, \
-       eapi_has_use_deps, eapi_has_strong_blocks, eapi_has_use_dep_defaults
+       eapi_has_use_deps, eapi_has_strong_blocks, eapi_has_use_dep_defaults, \
+       eapi_has_repo_deps
 from portage.exception import InvalidAtom, InvalidData, InvalidDependString
 from portage.localization import _
 from portage.versions import catpkgsplit, catsplit, \
@@ -1074,6 +1075,9 @@ class Atom(_atom_base):
 
                _atom_base.__init__(s)
 
+               if eapi_has_repo_deps(eapi):
+                       allow_repo = True
+
                if "!" == s[:1]:
                        blocker = self._blocker(forbid_overlap=("!" == s[1:2]))
                        if blocker.overlap.forbid: