kororaproject / kp-pharlap

Package for the device and proprietary driver management in Korora
4 stars 7 forks source link

pharlap fails to load on vm #5

Closed csmart closed 9 years ago

csmart commented 9 years ago

The regex we do to look for system information causes pharlap to crash on start up if it can't find an entry. For example, kvm machines don't have "CPU max MHz" entry in the output of lscpu.

[02:26] liveuser@localhost ~ $ pharlap
Traceback (most recent call last):
  File "/usr/bin/pharlap", line 156, in <module>
    'clockMax': re.search('CPU max MHz:\s+(.*)', cpuinfo).group(1),
AttributeError: 'NoneType' object has no attribute 'group'
firnsy commented 9 years ago

fixed in 37bfd58cc81c119444d1621c8e61e9b0348c7808