[yum-git] plugins/tmprepo yum-utils.spec

James Antill james at linux.duke.edu
Wed Aug 6 17:44:48 UTC 2008


 plugins/tmprepo/tmprepo.py |    3 ++-
 yum-utils.spec             |    2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

New commits:
commit 93dc3378d9313c805263ef49d6e18e0aa9afdfc7
Author: James Antill <james at and.org>
Date:   Wed Aug 6 13:41:24 2008 -0400

    Due to repo_gpgcheck we can make tmprepo fully backwards compat.

diff --git a/plugins/tmprepo/tmprepo.py b/plugins/tmprepo/tmprepo.py
index f82d247..d35ba19 100644
--- a/plugins/tmprepo/tmprepo.py
+++ b/plugins/tmprepo/tmprepo.py
@@ -46,7 +46,8 @@ def make_validate(log, pkgs_gpgcheck, repo_gpgcheck):
                 log.warn("Repo %s tried to set gpgcheck=false" % repo)
                 return False
 
-            if repo_gpgcheck and not repo.repo_gpgcheck:
+            if (repo_gpgcheck and hasattr(repo, 'repo_gpgcheck') and
+                not repo.repo_gpgcheck):
                 log.warn("Repo %s tried to set repo_gpgcheck=false" % repo)
                 return False
 
diff --git a/yum-utils.spec b/yum-utils.spec
index ca0b114..42915b1 100644
--- a/yum-utils.spec
+++ b/yum-utils.spec
@@ -233,7 +233,7 @@ each category, if any were specified.
 %package -n yum-tmprepo
 Summary: Yum plugin to add temporary repositories
 Group: System Environment/Base
-Requires: yum >= 3.2.18
+Requires: yum >= 3.2.8
 Requires: createrepo
 
 %description -n yum-tmprepo



More information about the Yum-cvs-commits mailing list