summaryrefslogtreecommitdiffstats
path: root/shared/prestoDownload.py
diff options
context:
space:
mode:
Diffstat (limited to 'shared/prestoDownload.py')
-rw-r--r--shared/prestoDownload.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/shared/prestoDownload.py b/shared/prestoDownload.py
index 45318ba..340ad1c 100644
--- a/shared/prestoDownload.py
+++ b/shared/prestoDownload.py
@@ -117,6 +117,7 @@ def downloadPkgs(conduit, pkglist):
adderror(po, str(e))
else:
rebuild_pkgs.append(po)
+ po.simple['deltalocalpath'] = deltalocal
if errors.has_key(po):
del errors[po]
@@ -128,7 +129,6 @@ def downloadPkgs(conduit, pkglist):
del po.simple['realpackagesize']
del po.simple['realrelativepath']
del po.simple['reallocalpath']
- po.simple['deltalocalpath'] = deltalocal
# Rebuild rpms from downloaded deltarpms
for po in rebuild_pkgs:
@@ -145,7 +145,9 @@ def downloadPkgs(conduit, pkglist):
pass
else:
# Set package type to local, so yum doesn't try to download it later
- po.pkgtype = "local"
+ # po.pkgtype = "local" # If we set this, we can't auto-install public keys
+ # and yum is smart enough to detect the full rpm and
+ # not redownload it.
# Check to see whether or not we should keep the drpms
# FIXME: Is there any way to see whether or not a Boolean option was not set?