commit: bf3eb16e451fd1bdee8ef03a0d22e0040e033f19 Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org> AuthorDate: Mon Jul 11 06:41:33 2022 +0000 Commit: Brian Dolbec <dolsen <AT> gentoo <DOT> org> CommitDate: Mon Jul 11 06:53:33 2022 +0000 URL: https://gitweb.gentoo.org/proj/gentoolkit.git/commit/?id=bf3eb16e
eclean/pkgindex.py: Fix typo in function call File "/usr/lib/python3.10/site-packages/gentoolkit/eclean/pkgindex.py", line 60, in clean_pkgs_index if self.get_emaint_binhost(): AttributeError: 'PkgIndex' object has no attribute 'get_emaint_binhost'. Did you mean: '_get_emaint_binhost'? Also fix too many parameters in line 68 for the self.controller() call Bug: https://bugs.gentoo.org/857555 Signed-off-by: Brian Dolbec <dolsen <AT> gentoo.org> pym/gentoolkit/eclean/pkgindex.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pym/gentoolkit/eclean/pkgindex.py b/pym/gentoolkit/eclean/pkgindex.py index d0878a1..7d6fade 100644 --- a/pym/gentoolkit/eclean/pkgindex.py +++ b/pym/gentoolkit/eclean/pkgindex.py @@ -57,7 +57,7 @@ class PkgIndex: statinfo = os.stat(file_) size1 = statinfo.st_size show_progress = not quiet - if self.get_emaint_binhost(): + if self._get_emaint_binhost(): self.taskmaster = TaskHandler(show_progress_bar=show_progress) tasks = [self.binhost] self.taskmaster.run_tasks(tasks) @@ -65,7 +65,7 @@ class PkgIndex: self.call_emaint() statinfo = os.stat(file_) clean_size = size1 - statinfo.st_size - self.controller("\n", clean_size, "Packages Index", file_, "Index") + self.controller(clean_size, "Packages Index", file_, "Index") return clean_size def call_emaint(self):