()
return updated
Detect update `#1363482`_ to the ``ubuntu-keyring`` package.

    :returns: :data:`True` when version ``2016.10.27`` or newer is installed,
              :data:`False` when an older version is installed.

    This function checks if the changes discussed in Launchpad bug `#1363482`_
    apply to the current system using the ``dpkg-query --show`` and ``dpkg
    --compare-versions`` commands. For more details refer to `issue #8`_.

    .. _#1363482: https://bugs.launchpad.net/ubuntu/+source/ubuntu-keyring/+bug/1363482
    .. _issue #8: https://github.com/xolox/python-apt-mirror-updater/issues/8
Detect update `#1363482`_ to the ``ubuntu-keyring`` package.
Detect update #1363482 _ to the ubuntu - keyring package .
def ubuntu_keyring_updated():
    """
    Detect update `#1363482`_ to the ``ubuntu-keyring`` package.

    :returns: :data:`True` when version ``2016.10.27`` or newer is installed,
              :data:`False` when an older version is installed.

    This function checks if the changes discussed in Launchpad bug `#1363482`_
    apply to the current system using the ``dpkg-query --show`` and ``dpkg
    --compare-versions`` commands. For more details refer to `issue #8`_.

    .. _#1363482: https://bugs.launchpad.net/ubuntu/+source/ubuntu-keyring/+bug/1363482
    .. _issue #8: https://github.com/xolox/python-apt-mirror-updater/issues/8
    """
    # Use external commands to check the installed version of the package.
    version = execute('dpkg-query', '--show', '--showformat=${Version}', 'ubuntu-keyring', capture=True)
    logger.debug("Detected ubuntu-keyring package version: %s", version)
    updated = execute('dpkg', '--compare-versions', version, '>=', '2016.10.27', check=False, silent=True)
    logger.debug("Does Launchpad bug #1363482 apply? %s", updated)
    return updated
def ubuntu_keyring_updated ( ) : # Use external commands to check the installed version of the package. version = execute ( 'dpkg-query' , '--show' , '--showformat=${Version}' , 'ubuntu-keyring' , capture = True ) logger . debug ( "Detected ubuntu-keyring package version: %s" , version ) updated = execute ( 'dpkg' , '--compare-versions' , version , '>=' , '2016.10.27' , check = False , silent = True ) logger . debug ( "Does Launchpad bug #1363482 apply? %s" , updated ) return updated