def validate_configurator_version():
    """
    Arch is a rolling release distro, therefore it is important to ensure
    the configurator version is current.
    """
    if settings.CONFIGURATOR_MODULE == "bootmachine.contrib.configurators.salt":
        pkgver = settings.SALT_AUR_PKGVER
        pkgrel = settings.SALT_AUR_PKGREL
        response = urllib2.urlopen("https://aur.archlinux.org/packages/sa/salt/PKGBUILD")
        for line in response:
            if line.startswith("pkgver=") and not pkgver in line:
                abort("The requested Salt 'pkgrel={0}' in the AUR was updated to '{1}'.".format(
                    pkgver, line.strip()))
            if line.startswith("pkgrel=") and not pkgrel in line:
                abort("The requested Salt 'pkgrel={0}' in the AUR was updated to '{1}'.".format(
                    pkgrel, line.strip()))
dataset/ETHPy150Open rizumu/bootmachine/bootmachine/contrib/distros/attic/rackspace_arch_20139.py/validate_configurator_version/original