Commit 93dc3378 authored by James Antill's avatar James Antill

Due to repo_gpgcheck we can make tmprepo fully backwards compat.

parent fe27cf9b
......@@ -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
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment