diff options
Diffstat (limited to 'presto.py')
-rw-r--r-- | presto.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -82,7 +82,7 @@ def postresolve_hook(conduit): # Cycle through packages to see if there's a deltarpm available for newpkg in conduit.getTsInfo(): if newpkg.ts_state != "e": - (chosen_drpm, installed, local) = prestoTransaction.find_available_drpms(conduit, newpkg) + (chosen_drpm, installed, local, drpm_enabled) = prestoTransaction.find_available_drpms(conduit, newpkg) # If a drpm was found, change certain package information so it reflects # the drpm, not the rpm. @@ -112,7 +112,7 @@ def postresolve_hook(conduit): conduit.info(2, "Found deltarpm update for %s.%s %s:%s.%s" % (newpkg.name, newpkg.arch, newpkg.epoch, newpkg.version, newpkg.release)) else: newpkg.po.hasdrpm = False - if installed and not local and newpkg.po.repo.p_repo.enabled: + if installed and drpm_enabled and not local: try: rpm_size += int(newpkg.po.simple['packagesize']) drpm_size += int(newpkg.po.simple['packagesize']) |