diff options
Diffstat (limited to 'shared/prestoTransaction.py')
-rw-r--r-- | shared/prestoTransaction.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/shared/prestoTransaction.py b/shared/prestoTransaction.py index 8a46211..71b90f3 100644 --- a/shared/prestoTransaction.py +++ b/shared/prestoTransaction.py @@ -29,8 +29,14 @@ def find_available_drpms(conduit, newpkg): try: p_repo = newpkg.po.repo.p_repo drpm_enabled = p_repo.enabled + if os.path.exists(newpkg.po.localpath): + is_local = True + else: + is_local = False except: + conduit.info(5, "No Presto repository information for %s.%s %i:%s-%s" % (newpkg.name, newpkg.arch, int(newpkg.epoch), newpkg.version, newpkg.release)) drpm_enabled = False + is_local = False chosen_drpm = None @@ -45,10 +51,6 @@ def find_available_drpms(conduit, newpkg): else: is_installed = True - if os.path.exists(newpkg.po.localpath): - is_local = True - else: - is_local = False if is_installed and drpm_enabled and not is_local: for oldpkg in installed: @@ -78,4 +80,4 @@ def find_available_drpms(conduit, newpkg): except: conduit.info(5, "Verification of %s failed" % seq) - return (chosen_drpm, installed, is_local) + return (chosen_drpm, installed, is_local, drpm_enabled) |