(self)
return filename
The pathname of the keyring with signing keys for this release (a string).

        This property exists to work around a bug in ``debootstrap`` which may
        use the wrong keyring to create Ubuntu chroots, for more details refer
        to :func:`ubuntu_keyring_updated()`.
The pathname of the keyring with signing keys for this release (a string).
The pathname of the keyring with signing keys for this release ( a string ) .
def keyring_file(self):
        """
        The pathname of the keyring with signing keys for this release (a string).

        This property exists to work around a bug in ``debootstrap`` which may
        use the wrong keyring to create Ubuntu chroots, for more details refer
        to :func:`ubuntu_keyring_updated()`.
        """
        filename = None
        reason = None
        logger.debug("Selecting keyring file for %s ..", self)
        if self.distributor_id == 'debian':
            filename = DEBIAN_KEYRING_CURRENT
            reason = "only known keyring"
        elif self.distributor_id == 'ubuntu':
            if ubuntu_keyring_updated():
                if self.version > decimal.Decimal('12.04'):
                    filename = UBUNTU_KEYRING_CURRENT
                    reason = "new keyring package / new release"
                else:
                    filename = UBUNTU_KEYRING_REMOVED
                    reason = "new keyring package / old release"
            else:
                filename = UBUNTU_KEYRING_CURRENT
                reason = "old keyring package"
        else:
            msg = "Unsupported distributor ID! (%s)"
            raise EnvironmentError(msg % self.distributor_id)
        logger.debug("Using %s (reason: %s).", filename, reason)
        return filename
def keyring_file ( self ) : filename = None reason = None logger . debug ( "Selecting keyring file for %s .." , self ) if self . distributor_id == 'debian' : filename = DEBIAN_KEYRING_CURRENT reason = "only known keyring" elif self . distributor_id == 'ubuntu' : if ubuntu_keyring_updated ( ) : if self . version > decimal . Decimal ( '12.04' ) : filename = UBUNTU_KEYRING_CURRENT reason = "new keyring package / new release" else : filename = UBUNTU_KEYRING_REMOVED reason = "new keyring package / old release" else : filename = UBUNTU_KEYRING_CURRENT reason = "old keyring package" else : msg = "Unsupported distributor ID! (%s)" raise EnvironmentError ( msg % self . distributor_id ) logger . debug ( "Using %s (reason: %s)." , filename , reason ) return filename