diff options
-rw-r--r-- | portage_with_autodep/pym/_emerge/EventsAnalyser.py | 4 | ||||
-rw-r--r-- | src/autodep/package_utils/portage_misc_functions.py | 6 |
2 files changed, 6 insertions, 4 deletions
diff --git a/portage_with_autodep/pym/_emerge/EventsAnalyser.py b/portage_with_autodep/pym/_emerge/EventsAnalyser.py index 0f2d2dd..7e416e7 100644 --- a/portage_with_autodep/pym/_emerge/EventsAnalyser.py +++ b/portage_with_autodep/pym/_emerge/EventsAnalyser.py @@ -168,9 +168,9 @@ class PortageUtils: buildtime_deps=self.get_dep(pkg, ["DEPEND"],"portdb") runtime_deps=set() for dep in buildtime_deps: - runtime_deps=runtime_deps.union(self.get_deps(dep,["RDEPEND"],"vardb")) + runtime_deps|=self.get_deps(dep,["RDEPEND","PDEPEND"],"vardb") - ret=buildtime_deps.union(runtime_deps) + ret = buildtime_deps | runtime_deps return ret diff --git a/src/autodep/package_utils/portage_misc_functions.py b/src/autodep/package_utils/portage_misc_functions.py index 849c9c8..881ff54 100644 --- a/src/autodep/package_utils/portage_misc_functions.py +++ b/src/autodep/package_utils/portage_misc_functions.py @@ -275,9 +275,11 @@ class portage_api: buildtime_deps=self.get_dep(pkg, ["DEPEND"],"portdb") runtime_deps=set() for dep in buildtime_deps: - runtime_deps=runtime_deps.union(self.get_deps(dep,["RDEPEND"],"vardb")) + runtime_deps|=self.get_deps(dep,["RDEPEND","PDEPEND"],"vardb") - ret=buildtime_deps.union(runtime_deps) + ret = buildtime_deps | runtime_deps + + return ret def get_system_packages_list(self): |