[equo] deal with broken repository entries

This commit is contained in:
Fabio Erculiani
2010-02-03 08:45:36 +01:00
parent 4492b7ea38
commit eaabcce60e
2 changed files with 382 additions and 380 deletions
+4 -2
View File
@@ -1816,8 +1816,10 @@ def remove_packages(entropy_client, packages = None, atomsdata = None,
c_repo = entropy_client.installed_repository()
on_disk_size = c_repo.retrieveOnDiskSize(idpackage)
pkg_size = c_repo.retrieveSize(idpackage)
total_removal_size += on_disk_size
total_pkg_size += pkg_size
if on_disk_size is not None:
total_removal_size += on_disk_size
if pkg_size is not None:
total_pkg_size += pkg_size
human_removal_size = entropy.tools.bytes_into_human(total_removal_size)
human_pkg_size = entropy.tools.bytes_into_human(total_pkg_size)
+378 -378
View File
File diff suppressed because it is too large Load Diff