[yum-commits] docs/yum.conf.5 yum/drpm.py

James Antill james at osuosl.org
Thu Mar 7 05:06:17 UTC 2013


 docs/yum.conf.5 |    6 ------
 yum/drpm.py     |    4 ++--
 2 files changed, 2 insertions(+), 8 deletions(-)

New commits:
commit 47ed57bb967d48e2f9e5079ea395e7e1ba0c1e3f
Author: James Antill <james at and.org>
Date:   Thu Mar 7 00:06:09 2013 -0500

    Fix leftover from deltarpm removal on repos.

diff --git a/docs/yum.conf.5 b/docs/yum.conf.5
index c701890..9d9a261 100644
--- a/docs/yum.conf.5
+++ b/docs/yum.conf.5
@@ -945,12 +945,6 @@ Overrides the \fBip_resolve\fR option from the [main] section for this
 repository.
 
 .IP
-\fBdeltarpm\fR
-
-Overrides the \fBdeltarpm\fR option from the [main] section for this
-repository.
-
-.IP
 \fBdeltarpm_percentage\fR
 
 Overrides the \fBdeltarpm_percentage\fR option from the [main] section
diff --git a/yum/drpm.py b/yum/drpm.py
index 3bcbcde..8008618 100644
--- a/yum/drpm.py
+++ b/yum/drpm.py
@@ -98,8 +98,8 @@ class DeltaInfo:
         pinfo = {}
         reposize = {}
         for index, po in enumerate(pkgs):
-            if not po.repo.deltarpm:
-                continue
+            if po.repo.deltarpm_percentage == 1:
+                continue # Allow people to turn off a repo. (meh)
             if po.state == TS_UPDATE: pass
             elif po.name in ayum.conf.installonlypkgs: pass
             else:


More information about the Yum-commits mailing list