Permalink
Browse files

Bug 630560 - [mozinfo] Fix linux distribution detection for OpenSUSE.…

… r=hskupin
  • Loading branch information...
moijes12 authored and whimboo committed Feb 5, 2013
1 parent 7f200e6 commit 5a7d59dc8388ab1835ba8a09339ab7f45665f508
Showing with 4 additions and 1 deletion.
  1. +4 −1 mozinfo/mozinfo/mozinfo.py
@@ -45,7 +45,10 @@ def __str__(self):
service_pack = os.sys.getwindowsversion()[4]
info['service_pack'] = service_pack
elif system == "Linux":
- (distro, version, codename) = platform.dist()
+ if hasattr(platform, "linux_distribution"):
+ (distro, version, codename) = platform.linux_distribution()
+ else:
+ (distro, version, codename) = platform.dist()
version = "%s %s" % (distro, version)
if not processor:
processor = machine

0 comments on commit 5a7d59d

Please sign in to comment.