Skip to content

Commit

Permalink
Improve cert selection printout
Browse files Browse the repository at this point in the history
  • Loading branch information
drojf committed Jul 5, 2024
1 parent 5c1e185 commit f3f0cf3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions common.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,11 +248,11 @@ def testCurlHeaders(url, certPath):
print("chooseCurlCertificate(): Failed to download headers using CURL from github.com using cert [{}]".format(certificate_path))
continue

print("chooseCurlCertificate(): Successfully used certificate {} to download from 07th-mod and github".format(certificate_path))
print("chooseCurlCertificate(): Will use certificate [{}] when using cURL with 07th-mod and github".format(certificate_path))
Globals.CA_CERT_PATH = certificate_path
return

print("chooseCurlCertificate(): ERROR: No certificates were found to work, tried {} Probably can't use installer!".format(paths_to_try))
print("chooseCurlCertificate(): ERROR: No certificates were found to work, tried [{}] Probably can't use installer!".format(paths_to_try))

# this function must be run AFTER scanCertLocation()
@staticmethod
Expand Down Expand Up @@ -280,11 +280,11 @@ def testURLOpenHeaders(url, certPath):
print("chooseURLOpenCertificate(): Failed to download headers using urlOpen from github.com using cert [{}]".format(certificate_path))
continue

print("chooseURLOpenCertificate(): Successfully used certificate {} to download from 07th-mod and github".format(certificate_path))
print("chooseURLOpenCertificate(): Will use certificate [{}] for URLOpen() on 07th-mod and github".format(certificate_path))
Globals.URLOPEN_CERT_PATH = certificate_path
return

print("chooseURLOpenCertificate(): ERROR: No certificates were found to work, tried {} Probably can't use installer!".format(paths_to_try))
print("chooseURLOpenCertificate(): ERROR: No certificates were found to work, tried [{}] Probably can't use installer!".format(paths_to_try))


@staticmethod
Expand Down

0 comments on commit f3f0cf3

Please sign in to comment.