From 37dd91238b0aac7e2069a765bc0b37a815280c59 Mon Sep 17 00:00:00 2001 From: Zooko O'Whielacronx Date: Tue, 23 Sep 2008 09:55:51 -0700 Subject: [PATCH] setup: fix a cut-and-paste error in the fallback to parsing /etc/lsb-release --- src/allmydata/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/allmydata/__init__.py b/src/allmydata/__init__.py index 02ae4fb5..08efc3b8 100644 --- a/src/allmydata/__init__.py +++ b/src/allmydata/__init__.py @@ -88,11 +88,11 @@ def get_linux_distro(): try: etclsbrel = open("/etc/lsb-release", "rU") - for inline in etclsbrel: - m = _distributor_id_file_re.search(p.stdout.read()) + for line in etclsbrel: + m = _distributor_id_file_re.search(line) if m: _distname = m.group(1).strip() - m = _release_cmdline_re.search(p.stdout.read()) + m = _release_file_re.search(line) if m: _version = m.group(1).strip() except EnvironmentError: -- 2.45.2