Added support for "not installed" message in apt_get
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
from thefuck.specific.apt import apt_available
|
||||
from thefuck.utils import memoize, which
|
||||
from thefuck.shells import shell
|
||||
from pprint import pprint
|
||||
|
||||
try:
|
||||
from CommandNotFound import CommandNotFound
|
||||
@@ -29,7 +30,7 @@ def get_package(executable):
|
||||
|
||||
|
||||
def match(command):
|
||||
if 'not found' in command.stderr:
|
||||
if 'not found' in command.stderr or 'not installed' in command.stderr:
|
||||
executable = _get_executable(command)
|
||||
return not which(executable) and get_package(executable)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user