Add the pacman_not_found rule

This commit is contained in:
mcarton
2015-08-12 18:10:26 +02:00
parent 986bbb30a7
commit ca8222e764
4 changed files with 75 additions and 3 deletions
+2 -2
View File
@@ -3,11 +3,11 @@ from thefuck import shells
def match(command, settings):
return 'not found' in command.stderr and get_pkgfile(command)
return 'not found' in command.stderr and get_pkgfile(command.script)
def get_new_command(command, settings):
packages = get_pkgfile(command)
packages = get_pkgfile(command.script)
formatme = shells.and_('{} -S {}', '{}')
return [formatme.format(pacman, package, command.script)