diff options
Diffstat (limited to 'sjhbuild/sysdeps.py')
-rw-r--r-- | sjhbuild/sysdeps.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sjhbuild/sysdeps.py b/sjhbuild/sysdeps.py index a4887c9..225f17d 100644 --- a/sjhbuild/sysdeps.py +++ b/sjhbuild/sysdeps.py @@ -19,8 +19,7 @@ _UNSTABLE_NAMES = { def _pipe_lower(args): - out, err = subprocess.Popen(args, - stdout=subprocess.PIPE).communicate() + out, err_ = subprocess.Popen(args, stdout=subprocess.PIPE).communicate() return out.strip().lower() @@ -39,6 +38,7 @@ def get_distribution(): _cached_dname = _pipe_lower(['lsb_release', '-is']) _cached_dversion = _pipe_lower(['lsb_release', '-rs']) + # pylint: disable-msg=W0704 except OSError: pass @@ -46,13 +46,13 @@ def get_distribution(): def check_package(package): - name, version = get_distribution() + name, version_ = get_distribution() if name in ['fedora', 'mandrivalinux']: ret = subprocess.call(['rpm', '--quiet', '-q', package]) return ret == 0 elif name in ['ubuntu', 'debian']: cmd = ["dpkg-query", "-f='${status}'", "-W", package] - out, err = subprocess.Popen(cmd, stdout=subprocess.PIPE).communicate() + out, err_ = subprocess.Popen(cmd, stdout=subprocess.PIPE).communicate() return out.find('install ok installed') != -1 return None |