aboutsummaryrefslogtreecommitdiff
path: root/scripts/convert-from-entitydb-to-sql.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2011-12-26 05:26:58 +0000
committerRob Austein <sra@hactrn.net>2011-12-26 05:26:58 +0000
commitec05982af002fd02c50c977f8807ab6870b54118 (patch)
tree554d395cfe45158d9e3e8239ba7512149f598899 /scripts/convert-from-entitydb-to-sql.py
parent523a1f269dc1c19e3537fc0d1dc9b96a1e7fb8dc (diff)
Checkpoint. Start debugging synchronization code.
svn path=/branches/tk100/; revision=4135
Diffstat (limited to 'scripts/convert-from-entitydb-to-sql.py')
-rw-r--r--scripts/convert-from-entitydb-to-sql.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/scripts/convert-from-entitydb-to-sql.py b/scripts/convert-from-entitydb-to-sql.py
index 3ba5241a..d96dd62d 100644
--- a/scripts/convert-from-entitydb-to-sql.py
+++ b/scripts/convert-from-entitydb-to-sql.py
@@ -368,7 +368,7 @@ for filename in glob.iglob(os.path.join(entitydb, "repositories", "*.xml")):
# Scrape client data out of the entitydb.
for filename in glob.iglob(os.path.join(entitydb, "pubclients", "*.xml")):
- client_handle = os.path.splitext(os.path.split(filename)[1])[0]
+ client_handle = os.path.splitext(os.path.split(filename)[1])[0].replace(".", "/")
e = ElementTree(file = filename).getroot()
rpki.relaxng.myrpki.assertValid(e)
@@ -424,10 +424,11 @@ if copy_csv_data:
# List cross certifications we didn't use.
-for filename in sorted(xcert_filenames):
- cer = rpki.x509.X509(Auto_file = filename)
- #print "Unused cross-certificate:", filename, cer.getSubject()
- print "Unused cross-certificate:", filename, cer.get_POW().pprint()
+if False:
+ for filename in sorted(xcert_filenames):
+ cer = rpki.x509.X509(Auto_file = filename)
+ #print "Unused cross-certificate:", filename, cer.getSubject()
+ print "Unused cross-certificate:", filename, cer.get_POW().pprint()
# Done!