示例#1
0
def run(cmd, list_softwares, write):
    if not list_softwares:
        # Realize all classic checks
        for r in check_all(cmd):
            yield r

    # List softwares only when it is asked by the user or when the result is written on a file
    if list_softwares or write:
        # Retrieve all softwares installed
        for r in get_sofwares():
            yield r
示例#2
0
def run(cmd, listSoftwares, write):

    if not listSoftwares:
        # realize all classic checks
        for r in check_all(cmd):
            yield r

    # list softwares only when it is asked by the user or when the result is written on a file (to stay visible on the standard output)
    if listSoftwares or write:
        # retrieve all sofwares installed
        for r in get_sofwares():
            yield r
示例#3
0
def run(cmd, listSoftwares, write):
	
	if not listSoftwares:
		# realize all classic checks
		for r in check_all(cmd):
			yield r

	# list softwares only when it is asked by the user or when the result is written on a file (to stay visible on the standard output)
	if listSoftwares or write:
		 # retrieve all sofwares installed
		for r in get_sofwares():
			yield r