mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
We gotta trash the error stream because gzip complains about broken pipe when ran in python subprocess ~.~
This commit is contained in:
parent
aecbb14aa4
commit
d8dfa1c5d5
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ def get_ynh_package_version(package):
|
|||
# may handle changelog differently !
|
||||
|
||||
changelog = "/usr/share/doc/%s/changelog.gz" % package
|
||||
cmd = "gzip -cd %s | head -n1" % changelog
|
||||
cmd = "gzip -cd %s 2>/dev/null | head -n1" % changelog
|
||||
if not os.path.exists(changelog):
|
||||
return {"version": "?", "repo": "?"}
|
||||
out = check_output(cmd).split()
|
||||
|
|
Loading…
Add table
Reference in a new issue