def extract_new_pack(_, fname, bool_val):
    'Extract a downloaded new pack to a sibling dir of the current pack.'
    exts = ('.zip', '.bz2', '.gz', '.7z', '.xz')
    if ((not bool_val) or (not any((fname.endswith(ext) for ext in exts)))):
        return None
    archive = os.path.join(lnp.BASEDIR, os.path.basename(fname))
    return extract_archive(archive, os.path.join(lnp.BASEDIR, '..'))
Extract a downloaded new pack to a sibling dir of the current pack.
def extract_new_pack(_, fname, bool_val):
    
    exts = ('.zip', '.bz2', '.gz', '.7z', '.xz')
    if ((not bool_val) or (not any((fname.endswith(ext) for ext in exts)))):
        return None
    archive = os.path.join(lnp.BASEDIR, os.path.basename(fname))
    return extract_archive(archive, os.path.join(lnp.BASEDIR, '..'))