diff options
author | Sascha Silbe <sascha@silbe.org> | 2009-09-27 17:24:38 (GMT) |
---|---|---|
committer | Sascha Silbe <sascha@silbe.org> | 2009-09-27 17:24:38 (GMT) |
commit | b458eb1b017aa1d72b8d199988615834b7d924df (patch) | |
tree | 7f9da8f138403b083fc217abcee5ccf6fafe9209 /sjhbuild | |
parent | 31140fd066aa85f639dabaf966268a1892a0005a (diff) |
print error if lsb_release could not be run (#1431)
Diffstat (limited to 'sjhbuild')
-rw-r--r-- | sjhbuild/sysdeps.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sjhbuild/sysdeps.py b/sjhbuild/sysdeps.py index 225f17d..a328ab2 100644 --- a/sjhbuild/sysdeps.py +++ b/sjhbuild/sysdeps.py @@ -38,9 +38,8 @@ def get_distribution(): _cached_dname = _pipe_lower(['lsb_release', '-is']) _cached_dversion = _pipe_lower(['lsb_release', '-rs']) - # pylint: disable-msg=W0704 except OSError: - pass + sys.stderr.write('ERROR: Could not run lsb_release. Is it installed?') return _cached_dname, _cached_dversion |