portage.gpg module¶
- class portage.gpg.GPG(settings)¶
- Bases: - object- Unlock GPG, must call dircetly from main program for get correct TTY - gpg_keepalive()¶
- Call GPG unlock command every 5 mins to avoid the passphrase expired. 
 - stop()¶
- Stop keepalive thread. 
 - unlock()¶
- Set GPG_TTY and run GPG unlock command. If gpg-keepalive is set, start keepalive thread.