示例#1
0
def strip_debug_action(filepath, fileinfo, install_dir, ag):
    excludelist = tuple(ag.get("NoStrip", []))

    # real path in .pisi package
    path = "/" + util.removepathprefix(install_dir, filepath)

    if path.startswith(excludelist):
        return

    outputpath = util.join_path(
        os.path.dirname(install_dir), ctx.const.debug_dir_suffix, ctx.const.debug_files_suffix, path
    )

    if util.strip_file(filepath, fileinfo, outputpath):
        ctx.ui.debug("%s [%s]" % (path, "stripped"))
示例#2
0
def strip_debug_action(filepath, fileinfo, install_dir, ag):
    excludelist = tuple(ag.get("NoStrip", []))

    # real path in .pisi package
    path = '/' + util.removepathprefix(install_dir, filepath)

    if path.startswith(excludelist):
        return

    outputpath = util.join_path(os.path.dirname(install_dir),
                                ctx.const.debug_dir_suffix,
                                ctx.const.debug_files_suffix, path)

    if util.strip_file(filepath, fileinfo, outputpath):
        ctx.ui.debug("%s [%s]" % (path, "stripped"))
示例#3
0
def strip_debug_action(filepath, fileinfo, install_dir, ag):
    excludelist = [] if not ag.has_key('NoStrip') else ag['NoStrip']
    outputpath = util.join_path(os.path.dirname(install_dir),
                                ctx.const.debug_dir_suffix,
                                ctx.const.debug_files_suffix,
                                util.remove_prefix(install_dir, filepath))

    # real path in .pisi package
    p = '/' + util.removepathprefix(install_dir, filepath)
    strip = True
    for exclude in excludelist:
        if p.startswith(exclude):
            strip = False

    if strip:
        if util.strip_file(filepath, fileinfo, outputpath):
            ctx.ui.debug("%s [%s]" % (p, "stripped"))