diff options
Diffstat (limited to 'portage_with_autodep/pym/_emerge/EventsAnalyser.py')
-rw-r--r-- | portage_with_autodep/pym/_emerge/EventsAnalyser.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/portage_with_autodep/pym/_emerge/EventsAnalyser.py b/portage_with_autodep/pym/_emerge/EventsAnalyser.py index a0562aa..f0aa7f8 100644 --- a/portage_with_autodep/pym/_emerge/EventsAnalyser.py +++ b/portage_with_autodep/pym/_emerge/EventsAnalyser.py @@ -263,7 +263,7 @@ class FilterProcGenerator: portageutils=PortageUtils(settings=settings) deps_all=portageutils.get_deps_for_package_building(pkgname) - deps_portage=portageutils.get_dep('portage',["RDEPEND"]) + deps_portage=portageutils.get_dep('sys-apps/portage',["RDEPEND"]) system_packages=portageutils.get_system_packages_list() @@ -273,6 +273,7 @@ class FilterProcGenerator: allowedpkgs=system_packages+list(deps_portage)+list(deps_all) + allowedpkgs+=["app-portage/autodep"] allowedfiles=GentoolkitUtils().getfilesbypackages(allowedpkgs) #for pkg in allowedpkgs: @@ -304,8 +305,8 @@ class EventsAnalyser: self.deps_all=self.portageutils.get_deps_for_package_building(pkgname) self.deps_direct=self.portageutils.get_dep(pkgname,["DEPEND"]) - self.deps_portage=self.portageutils.get_dep('portage',["RDEPEND"]) - + self.deps_portage=self.portageutils.get_dep('sys-apps/portage',["RDEPEND"]) + self.system_packages=self.portageutils.get_system_packages_list() # All analyse work is here @@ -381,12 +382,13 @@ class EventsAnalyser: if package=="unknown": continue - + is_pkg_in_dep=package in self.deps_all is_pkg_in_portage_dep=package in self.deps_portage is_pkg_in_system=package in self.system_packages is_pkg_python="dev-lang/python" in package + is_pkg_self="app-portage/autodep" in package stages=[] for stage in sorted(packagesinfo[package].keys(), key=stagesorder.get): @@ -425,6 +427,8 @@ class EventsAnalyser: portage.util.writemsg("[SYSTEM]") elif is_pkg_in_portage_dep: portage.util.writemsg("[PORTAGE DEP]") + elif is_pkg_self: + portage.util.writemsg("[AUTODEP]") elif is_pkg_python: portage.util.writemsg("[INTERPRETER]") elif not self.is_package_useful(package,stages,filenames.keys()): |