Don't choke on trailing commas in deptokens() (#65, dmueller at suse.de)
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1351 9bc8b190-ac0f-0410-8968-dc7d1f502856
This commit is contained in:
parent
a32c466a22
commit
c0433226d2
|
@ -76,6 +76,8 @@ def deptokens(line):
|
|||
tmp = ''
|
||||
wantmore = 0
|
||||
for tok in re.split('[\s,]+', line.strip()):
|
||||
if len(tok) == 0:
|
||||
continue
|
||||
if len(tmp) == 0:
|
||||
tmp = tok
|
||||
elif wantmore:
|
||||
|
|
Loading…
Reference in New Issue