コード例 #1
0
ファイル: build.py プロジェクト: likewhoa/catalyst-1
def scan_profile(path):
	if "grab_stacked" in dir(portage):
		return portage.grab_stacked(path, portage.settings.profiles, portage.grabfile, incremental_lines=1)
	else:
		if "grab_multiple" in dir(portage):
			return portage.stack_lists(portage.grab_multiple(path, portage.settings.profiles, portage.grabfile), incremental=1)
		else:
			return portage.stack_lists([portage.grabfile_package(os.path.join(x, path)) for x in portage.settings.profiles], incremental=1)
コード例 #2
0
def scan_profile(file):
    return portage.stack_lists([
        portage.grabfile_package(os.path.join(x, file))
        for x in portage.settings.profiles
    ],
                               incremental=1)
コード例 #3
0
ファイル: stage1.py プロジェクト: clickbeetle/cb_build
def scan_profile(file):
  return portage.stack_lists( [portage.grabfile_package(os.path.join(x, file)) for x in portage.settings.profiles], incremental=1);