mesonwrap icon indicating copy to clipboard operation
mesonwrap copied to clipboard

Fix get_current_version in meson/mesonbuild/wrap/wraptool.py to not rely on API path

Open sarum9in opened this issue 7 years ago • 0 comments

def get_current_version(wrapfile):
    cp = configparser.ConfigParser()
    cp.read(wrapfile)
    cp = cp['wrap-file']
    patch_url = cp['patch_url']
    arr = patch_url.split('/')
    branch = arr[-3]
    revision = int(arr[-2])
    return branch, revision, cp['directory'], cp['source_filename'], cp['patch_filename']

sarum9in avatar Sep 07 '18 11:09 sarum9in