diff options
author | Rob Austein <sra@hactrn.net> | 2014-04-02 02:11:55 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2014-04-02 02:11:55 +0000 |
commit | 1acc49a616347b0ec5fd91cba635a4b3569128fb (patch) | |
tree | 797b68ebeb4be019597ca11d2e90c6ed7eae1f0a /rpkid | |
parent | 1d7168b117b15737741d962ab18d70c078b8e329 (diff) |
Hmm, fun failures withdrawing nonexistent objects. Try postponing
revokcation until after we've done everything else.
svn path=/branches/tk671/; revision=5731
Diffstat (limited to 'rpkid')
-rw-r--r-- | rpkid/upgrade-scripts/upgrade-irdbd-to-0.5678.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/rpkid/upgrade-scripts/upgrade-irdbd-to-0.5678.py b/rpkid/upgrade-scripts/upgrade-irdbd-to-0.5678.py index 81fe4701..ad9cf370 100644 --- a/rpkid/upgrade-scripts/upgrade-irdbd-to-0.5678.py +++ b/rpkid/upgrade-scripts/upgrade-irdbd-to-0.5678.py @@ -48,16 +48,19 @@ handles = subprocess.check_output((rpkic, "list_self_handles")).splitlines() argv = [irbe_cli] for handle in handles: - argv.extend(("self", "--self_handle", handle, "--action", "set", - "--rekey", "--reissue", "--run_now")) + argv.extend(("self", "--self_handle", handle, "--action", "set", "--rekey")) subprocess.check_call(argv) time.sleep(10) argv = [irbe_cli] for handle in handles: - argv.extend(("self", "--self_handle", handle, "--action", "set", - "--revoke", "--reissue", "--run_now", "--publish_world_now")) + argv.extend(("self", "--self_handle", handle, "--action", "set", "--reissue", "--run_now", "--publish_world_now")) +subprocess.check_call(argv) + +argv = [irbe_cli] +for handle in handles: + argv.extend(("self", "--self_handle", handle, "--action", "set", "--revoke")) subprocess.check_call(argv) ''') |