#NEWLINE# def make_args( self , args , passphrase ) : #NEWLINE# #INDENT# '\n        Make a list of command line elements for GPG. The value of ``args``\n        will be appended. The ``passphrase`` argument needs to be True if\n        a passphrase will be sent to GPG, else False.\n        ' #NEWLINE# cmd = [ self . gpgbinary , '--status-fd 2 --no-tty' ] #NEWLINE# if self . gnupghome : #NEWLINE# #INDENT# cmd . append ( ( '--homedir %s' % shell_quote ( self . gnupghome ) ) ) #NEWLINE# #UNINDENT# if self . keyring : #NEWLINE# #INDENT# cmd . append ( '--no-default-keyring' ) #NEWLINE# for fn in self . keyring : #NEWLINE# #INDENT# cmd . append ( ( '--keyring %s' % shell_quote ( fn ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# if self . secret_keyring : #NEWLINE# #INDENT# for fn in self . secret_keyring : #NEWLINE# #INDENT# cmd . append ( ( '--secret-keyring %s' % shell_quote ( fn ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# if passphrase : #NEWLINE# #INDENT# cmd . append ( '--batch --passphrase-fd 0' ) #NEWLINE# #UNINDENT# if self . use_agent : #NEWLINE# #INDENT# cmd . append ( '--use-agent' ) #NEWLINE# #UNINDENT# if self . options : #NEWLINE# #INDENT# cmd . extend ( self . options ) #NEWLINE# #UNINDENT# cmd . extend ( args ) #NEWLINE# return cmd