Fix cpus string parsing, wrt use of ^ to remove elements.

Patch from Satoshi Uchida <s-uchida@ap.jp.nec.com>.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
emellor@leeni.uk.xensource.com committed 2006-04-03 18:39:21 +01:00
1 parent 15b8695184
commit d0263f0fa4
1 file changed
+1 -1
+1 -1
View File
@@ -333,7 +333,7 @@ def parseConfig(config):
else:
# remove this element from the list
if c[0] == '^':
cpus = [x for x in cpus if x != int(c[1])]
cpus = [x for x in cpus if x != int(c[1:])]
else:
cpus.append(int(c))
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.