Skip to content

Commit

Permalink
eclean/pkgindex.py: Fix typo in function call
Browse files Browse the repository at this point in the history
  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@gentoo.org>
  • Loading branch information
dol-sen committed Jul 11, 2022
1 parent 9ab5d99 commit bf3eb16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pym/gentoolkit/eclean/pkgindex.py
Expand Up @@ -57,15 +57,15 @@ def clean_pkgs_index(self, quiet):
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)
else:
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):
Expand Down

0 comments on commit bf3eb16

Please sign in to comment.