| |
@@ -106,7 +106,11 @@
|
| |
We override this from pyrpkg because we actually need a client-side
|
| |
certificate.
|
| |
"""
|
| |
- return os.path.expanduser('~/.fedora.cert')
|
| |
+ path = os.path.expanduser('~/.fedora.cert')
|
| |
+ if os.path.exists(path):
|
| |
+ return path
|
| |
+ else:
|
| |
+ return None
|
| |
|
| |
@cached_property
|
| |
def ca_cert(self):
|
| |
@@ -123,9 +127,13 @@
|
| |
|
| |
We override this because we need a different download path.
|
| |
"""
|
| |
+ gssapi = True
|
| |
+ if self.cert_file:
|
| |
+ gssapi = False
|
| |
+
|
| |
return FedoraLookasideCache(
|
| |
self.lookasidehash, self.lookaside, self.lookaside_cgi,
|
| |
- client_cert=self.cert_file, ca_cert=self.ca_cert)
|
| |
+ client_cert=self.cert_file, ca_cert=self.ca_cert, gssapi=gssapi)
|
| |
|
| |
# Overloaded property loaders
|
| |
def load_rpmdefines(self):
|
| |
Requires pyrpkg#107
Signed-off-by: Patrick Uiterwijk puiterwijk@redhat.com