mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-08 11:24:25 +00:00
setup: fix a cut-and-paste error in the fallback to parsing /etc/lsb-release
This commit is contained in:
parent
8a35d2ed83
commit
37dd91238b
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user