Skip to content

Commit

Permalink
client-python: Add getter for package count to downloader
Browse files Browse the repository at this point in the history
Add a new method get_package_count() to the DebugInfoDownload class
which returns the number of packages that will be downloaded.
  • Loading branch information
mgrabovsky authored and michalfabik committed Sep 4, 2020
1 parent 62d67fb commit cbb6b43
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/client-python/reportclient/debuginfo.py
Expand Up @@ -242,6 +242,9 @@ def get_download_size(self):
def get_install_size(self):
return self.installed_size

def get_package_count(self):
return len(self.package_files_dict)

def mute_stdout(self):
"""
Links sys.stdout with /dev/null and saves the old stdout
Expand Down

0 comments on commit cbb6b43

Please sign in to comment.