def _build_url(self):
    '\n        Generate a url given a commit hash and distgit hash to match the format\n        base/AB/CD/ABCD123_XYZ987 where ABCD123 is the commit hash and XYZ987\n        is a portion of the distgit hash.\n\n        :return: A string with the full URL.\n        '
    first = self._commit_data['commit_hash'][0:2]
    second = self._commit_data['commit_hash'][2:4]
    third = self._commit_data['commit_hash']
    for key in ['dist_hash', 'extended_hash']:
        if (self._commit_data.get(key, 'None') != 'None'):
            third += ('_' + self._commit_data[key][0:8])
    return os.path.join(self.url, first, second, third)
Generate a url given a commit hash and distgit hash to match the format
base/AB/CD/ABCD123_XYZ987 where ABCD123 is the commit hash and XYZ987
is a portion of the distgit hash.

:return: A string with the full URL.
def _build_url(self):
    '\n        Generate a url given a commit hash and distgit hash to match the format\n        base/AB/CD/ABCD123_XYZ987 where ABCD123 is the commit hash and XYZ987\n        is a portion of the distgit hash.\n\n        :return: A string with the full URL.\n        '
    first = self._commit_data['commit_hash'][0:2]
    second = self._commit_data['commit_hash'][2:4]
    third = self._commit_data['commit_hash']
    for key in ['dist_hash', 'extended_hash']:
        if (self._commit_data.get(key, 'None') != 'None'):
            third += ('_' + self._commit_data[key][0:8])
    return os.path.join(self.url, first, second, third)