Author: Daniel J Walsh
Email: dwalsh@redhat.com Subject: chcat fixes Date: Thu, 21 May 2009 08:13:26 -0400 On 05/20/2009 04:05 PM, Chad Sellers wrote: > On 5/20/09 3:00 PM, "Daniel J Walsh"<dwalsh@redhat.com> wrote: > >> Expansion of categores is still broken. Here is a patch to fix. >> > This message appears to be missing a patch. > > Thanks, > Chad > Signed-off-by: Joshua Brindle <method@manicmethod.com>
This commit is contained in:
parent
275d7f658e
commit
5467587bcc
1 changed files with 8 additions and 8 deletions
|
@ -281,14 +281,14 @@ def isSensitivity(sensitivity):
|
|||
def expandCats(cats):
|
||||
newcats = []
|
||||
for c in cats:
|
||||
if c.find(".") != -1:
|
||||
c = c.split(".")
|
||||
for i in range(int(c[0][1:]), int(c[1][1:]) + 1):
|
||||
x = ("c%d" % i)
|
||||
if x not in newcats:
|
||||
newcats.append("c%d" % i)
|
||||
else:
|
||||
for i in c.split(","):
|
||||
for i in c.split(","):
|
||||
if i.find(".") != -1:
|
||||
j = i.split(".")
|
||||
for k in range(int(j[0][1:]), int(j[1][1:]) + 1):
|
||||
x = ("c%d" % k)
|
||||
if x not in newcats:
|
||||
newcats.append(x)
|
||||
else:
|
||||
if i not in newcats:
|
||||
newcats.append(i)
|
||||
if len(newcats) > 25:
|
||||
|
|
Loading…
Reference in a new issue