#NEWLINE# def _contextkey( jail = None , chroot = None , prefix = 'pkg.list_pkgs' ) : #NEWLINE# #INDENT# '\n    As this module is designed to manipulate packages in jails and chroots, use\n    the passed jail/chroot to ensure that a key in the __context__ dict that is\n    unique to that jail/chroot is used.\n    ' #NEWLINE# if jail : #NEWLINE# #INDENT# return ( str ( prefix ) + '.jail_{0}' . format ( jail ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if chroot : #NEWLINE# #INDENT# return ( str ( prefix ) + '.chroot_{0}' . format ( chroot ) ) #NEWLINE# #UNINDENT# #UNINDENT# return prefix