mirror of
https://github.com/nvbn/thefuck.git
synced 2025-03-20 09:39:01 +00:00
Merge branch 'master' of https://github.com/awonnacott/thefuck into awonnacott-master
This commit is contained in:
commit
3efa42ec06
@ -24,8 +24,11 @@ def get_pkgfile(command):
|
|||||||
).splitlines()
|
).splitlines()
|
||||||
|
|
||||||
return [package.split()[0] for package in packages]
|
return [package.split()[0] for package in packages]
|
||||||
except subprocess.CalledProcessError:
|
except subprocess.CalledProcessError as err:
|
||||||
return None
|
if err.returncode == 1 and err.output == "":
|
||||||
|
return []
|
||||||
|
else:
|
||||||
|
raise err
|
||||||
|
|
||||||
|
|
||||||
def archlinux_env():
|
def archlinux_env():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user