tom/dependencies.py
def find_new_version(self, old_url, old_version, separator):
        """Finds new version by iteratively increasing version in URL and
        checking if it's still possible to download a file.
        Returns highest version for which a file exists.
        Note that if old_version is 1.2.3, and somebody released version
        1.2.5 WITHOUT releasing 1.2.4 before that, then this function will NOT
        find it
        """
        increment = 0
        url_result = True
        while url_result:
            increment += 1
            new_version = self.increase_version(old_version, increment, separator)
            # note that we change version on URL level, not on filename level -
            # because sometimes version might be in directory name, too
            new_url = old_url.replace(old_version, new_version)
            url_result = self.checkfile(new_url)
            # note that url_result might be True, False, or string with md5 hash
        # Loop ends when `increment` points to non-existing version -
        # so we need to decrease it to point to last existing one
        increment -= 1
        if increment == 0:
            return old_version
        return self.increase_version(old_version, increment, separator)
Finds new version by iteratively increasing version in URL and
        checking if it's still possible to download a file.
        Returns highest version for which a file exists.
        Note that if old_version is 1.2.3, and somebody released version
        1.2.5 WITHOUT releasing 1.2.4 before that, then this function will NOT
        find it
        
Finds new version by iteratively increasing version in URL and
checking if it's still possible to download a file.
Returns highest version for which a file exists.
Note that if old_version is 1.2.3, and somebody released version
1.2.5 WITHOUT releasing 1.2.4 before that, then this function will NOT
find it
Finds new version by iteratively increasing version in URL and checking if it ' s still possible to download a file . Returns highest version for which a file exists . Note that if old_version is 1 . 2 . 3 and somebody released version 1 . 2 . 5 WITHOUT releasing 1 . 2 . 4 before that then this function will NOT find it
def find_new_version(self, old_url, old_version, separator):
        increment = 0
        url_result = True
        while url_result:
            increment += 1
            new_version = self.increase_version(old_version, increment, separator)
            new_url = old_url.replace(old_version, new_version)
            url_result = self.checkfile(new_url)
        increment -= 1
        if increment == 0:
            return old_version
        return self.increase_version(old_version, increment, separator)
def find_new_version ( self , old_url , old_version , separator ) : increment = 0 url_result = True while url_result : increment += 1 new_version = self . increase_version ( old_version , increment , separator ) new_url = old_url . replace ( old_version , new_version ) url_result = self . checkfile ( new_url ) increment -= 1 if increment == 0 : return old_version return self . increase_version ( old_version , increment , separator )
Finds new version by iteratively increasing version in URL and
checking if it's still possible to download a file.
Finds new version by iteratively increasing version in URL and checking if it ' s still possible to download a file .
"""Finds new version by iteratively increasing version in URL and
        checking if it's still possible to download a file.
        Returns highest version for which a file exists.
        Note that if old_version is 1.2.3, and somebody released version
        1.2.5 WITHOUT releasing 1.2.4 before that, then this function will NOT
        find it
        """ # note that we change version on URL level, not on filename level - # because sometimes version might be in directory name, too # note that url_result might be True, False, or string with md5 hash # Loop ends when `increment` points to non-existing version - # so we need to decrease it to point to last existing one
self
old_url
old_version
separator