the kickstart to be overridden.
"""
+ def get_ssl_verify(ssl_verify=None):
+ if ssl_verify is not None:
+ return not ssl_verify.lower().strip() == 'no'
+ else:
+ return not self.ssl_verify.lower().strip() == 'no'
# initialize pkg list to install
if self.ks:
source, gpgkey, disable, ssl_verify, nocache,
cost, priority) = repo
+ ssl_verify = get_ssl_verify(ssl_verify)
yr = pkg_manager.addRepository(name, baseurl, mirrorlist, proxy,
proxy_username, proxy_password, inc, exc, ssl_verify,
nocache, cost, priority)
def Repo(name, baseurl, mirrorlist=None, includepkgs=[], excludepkgs=[], proxy=None,
proxy_username=None, proxy_password=None, debuginfo=None,
- source=None, gpgkey=None, disable=None, ssl_verify=False,
+ source=None, gpgkey=None, disable=None, ssl_verify=None,
nocache=False, cost=None, priority=None):
return RepoType(name, baseurl, mirrorlist, includepkgs, excludepkgs, proxy,
proxy_username, proxy_password, debuginfo,
- source, gpgkey, disable, ssl_verify == "yes", nocache,
+ source, gpgkey, disable, ssl_verify, nocache,
cost, priority)
op.add_option("--gpgkey")
op.add_option("--priority", type="int")
- op.add_option("--ssl_verify", default="yes")
+ op.add_option("--ssl_verify", default=None)
return op