Don't fail on dupes in version specific files

The rot won't be unwound for another 6-12 months, and we're not
backporting all the infrastructure to do markers to older releases. So
we need to warn only, rather than erroring, when encountering this
situation.

Change-Id: Ib63996b016f7f99f69ad1255c333cc2d1846cbdb
This commit is contained in:
Robert Collins 2015-06-30 15:30:18 +12:00
parent 487596339c
commit 0d4fc25212
1 changed files with 2 additions and 2 deletions

View File

@ -68,8 +68,8 @@ class RequirementsList(object):
if not name:
# Comments and other unprocessed lines
continue
if strict and name in reqs:
print("Requirement %s present in multiple files" % name)
print("Requirement %s present in multiple files" % name)
if strict and name in reqs and not '-py' in fname:
self.failed = True
reqs[name].update(r for (r, line) in entries)