mirror of
https://github.com/nvbn/thefuck.git
synced 2025-02-22 21:08:48 +00:00
Merge branch 'awonnacott-master'
This commit is contained in:
commit
8c783b7405
@ -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