mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 08:09:41 +00:00
system: improve context of changed/modified message in certctl.py
This commit is contained in:
parent
2adda3edd1
commit
a383331f57
@ -26,6 +26,7 @@
|
||||
-----------------------------------------------------------------------------------------------
|
||||
Simple re-implementation of certctl tool in FreeBSD (only supporting the parameters we use)
|
||||
"""
|
||||
|
||||
import glob
|
||||
import sys
|
||||
import os
|
||||
@ -40,7 +41,6 @@ BLACKLISTPATH = ['/usr/share/certs/untrusted', '/usr/share/certs/blacklisted', '
|
||||
CERTDESTDIR = '/etc/ssl/certs'
|
||||
BLACKLISTDESTDIR = '/etc/ssl/blacklisted'
|
||||
|
||||
|
||||
def certificate_iterator(filename):
|
||||
fext = os.path.splitext(filename)[1][1:].lower()
|
||||
try:
|
||||
@ -160,7 +160,13 @@ def cmd_rehash():
|
||||
else:
|
||||
os.remove(filename)
|
||||
changes += 1
|
||||
print("Changed %d links" % changes)
|
||||
|
||||
if changes == 0:
|
||||
print("certctl: No changes to trust store were made.")
|
||||
elif changes == 1:
|
||||
print("certctl: Modified 1 trust store link.")
|
||||
else:
|
||||
print("certctl: Modified %d trust store links." % changes)
|
||||
|
||||
# link certs/crls to ports openssl version
|
||||
current_target_files = []
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user