def retrieve_local_versions():
    for section in common_config.SOURCES:
        if section not in NOT_PROJECTS:
            project = section.split('-')[0]
            version = common_config.SOURCES[section]['location'].split(
                '/')[-1].split('.tar.gz')[0]
            if '-' in version:
                version = version.split('-')[1]
            VERSIONS['local'][project] = version
dataset/ETHPy150Open openstack/kolla/tools/version_check.py/retrieve_local_versions/original