I was testing the progress callback of GPGME in python and got some strange results. I'm using GPGME v1.11.1
$ cat progresstest.py import gpg, tempfile # Borrowed from callbacks.py def progress_stdout(what, type, current, total, hook=None): print("PROGRESS UPDATE: what = %s, type = %d, current = %d, total = %d" %\ (what, type, current, total)) tmp = tempfile.TemporaryDirectory() ctx = gpg.Context(home_dir=tmp.name) ctx.set_progress_cb(progress_stdout) ctx.create_key("Test <t...@example.com>", algorithm="rsa4096") $ python3 progresstest.py PROGRESS UPDATE: what = primegen, type = 46, current = 0, total = 0 PROGRESS UPDATE: what = primegen, type = 46, current = 0, total = 0 PROGRESS UPDATE: what = primegen, type = 46, current = 0, total = 0 PROGRESS UPDATE: what = primegen, type = 46, current = 0, total = 0 PROGRESS UPDATE: what = primegen, type = 46, current = 0, total = 0 PROGRESS UPDATE: what = primegen, type = 46, current = 0, total = 0 PROGRESS UPDATE: what = primegen, type = 46, current = 0, total = 0 PROGRESS UPDATE: what = primegen, type = 46, current = 0, total = 0 PROGRESS UPDATE: what = primegen, type = 46, current = 0, total = 0 PROGRESS UPDATE: what = primegen, type = 46, current = 0, total = 0 PROGRESS UPDATE: what = primegen, type = 46, current = 0, total = 0 PROGRESS UPDATE: what = primegen, type = 46, current = 0, total = 0 PROGRESS UPDATE: what = primegen, type = 46, current = 0, total = 0 PROGRESS UPDATE: what = primegen, type = 46, current = 0, total = 0 PROGRESS UPDATE: what = primegen, type = 46, current = 0, total = 0 PROGRESS UPDATE: what = primegen, type = 46, current = 0, total = 0 PROGRESS UPDATE: what = primegen, type = 46, current = 0, total = 0 PROGRESS UPDATE: what = primegen, type = 46, current = 0, total = 0 PROGRESS UPDATE: what = primegen, type = 46, current = 0, total = 0 PROGRESS UPDATE: what = primegen, type = 46, current = 0, total = 0 PROGRESS UPDATE: what = primegen, type = 43, current = 0, total = 0 PROGRESS UPDATE: what = primegen, type = 43, current = 0, total = 0 PROGRESS UPDATE: what = primegen, type = 43, current = 0, total = 0 PROGRESS UPDATE: what = primegen, type = 43, current = 0, total = 0 PROGRESS UPDATE: what = primegen, type = 43, current = 0, total = 0 PROGRESS UPDATE: what = primegen, type = 46, current = 0, total = 0 PROGRESS UPDATE: what = primegen, type = 46, current = 0, total = 0 PROGRESS UPDATE: what = primegen, type = 46, current = 0, total = 0 PROGRESS UPDATE: what = primegen, type = 43, current = 0, total = 0 PROGRESS UPDATE: what = primegen, type = 43, current = 0, total = 0 PROGRESS UPDATE: what = primegen, type = 43, current = 0, total = 0 PROGRESS UPDATE: what = primegen, type = 43, current = 0, total = 0 PROGRESS UPDATE: what = primegen, type = 43, current = 0, total = 0 Aren't current and total supposed to indicate progress? Why might they be zero? Thanks, Jacob
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users