]> git.ipfire.org Git - people/stevee/pakfire.git/commitdiff
system: Always read /proc/cpuinfo to its end.
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 28 Feb 2013 14:25:56 +0000 (14:25 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 28 Feb 2013 14:25:56 +0000 (14:25 +0000)
On ARM there are no blocks per CPU, so we read
the entire file and have all the information we need.

python/pakfire/system.py

index 9a5d546aa39fe90d921422bcf5f67813e3ad2fa5..4c375cc94c22ae70286866fbd16f02b4c4b920f1 100644 (file)
@@ -112,10 +112,6 @@ class System(object):
 
                with open("/proc/cpuinfo") as f:
                        for line in f.readlines():
-                               # Only parse the first block.
-                               if line == "\n":
-                                       break
-
                                try:
                                        # Split the lines by colons.
                                        a, b = line.split(":")