def METHOD_NAME(topsrc, file_ext, dep_name, old_id, new_id, search_prefix = '', search_postfix = ''):
    any_files_changed = False
    if old_id != new_id:
        # always exclude the versions file
        seek_retcode = os.system('grep -q -r --include="*.' + file_ext + '" --exclude="' + topsrc + '/external/versions.cmake" "' + search_prefix + old_id + search_postfix + '" ' + topsrc)
        if os.WIFEXITED(seek_retcode) and os.WEXITSTATUS(seek_retcode) == 0:
            any_files_changed = True
            print('changing ' + dep_name + ' id from', old_id, 'to', new_id)
            esc_search_prefix = escape_special_chars(search_prefix)
            esc_search_postfix = escape_special_chars(search_postfix)
            os.system('find ' + topsrc + ' -type f -name "*.' + file_ext + '" -print0 | xargs -0 sed -i \'\' -e \'s/' + esc_search_prefix + old_id + esc_search_postfix + '/' + esc_search_prefix + new_id + esc_search_postfix + '/g\'')
    return any_files_changed