def get_new_command(command): packages = get_pkgfile(command.script) formatme = shell.and_('{} -S {}', '{}') return [ formatme.format(pacman, package, command.script) for package in packages ]
def get_new_command(command): pgr = command.script.split()[-1] return replace_command(command, pgr, get_pkgfile(pgr))
def match(command): return 'not found' in command.output and get_pkgfile(command.script)
def match(command): return 'not found' in command.stderr and get_pkgfile(command.script)
def get_new_command(command): packages = get_pkgfile(command.script) formatme = shell.and_('{} -S {}', '{}') return [formatme.format(pacman, package, command.script) for package in packages]