Append requirement only if already not present
This commit is contained in:
parent
6ad261fdf2
commit
2505023387
1 changed files with 3 additions and 1 deletions
|
@ -319,7 +319,9 @@ class Emulator(object):
|
|||
lastcreatedtype)
|
||||
else:
|
||||
if 'require' in self.env:
|
||||
self.env['require'] += " " + lastcreatedtype
|
||||
appendix = " " + lastcreatedtype
|
||||
if appendix not in self.env['require']:
|
||||
self.env['require'] += appendix
|
||||
else:
|
||||
self.env['require'] = lastcreatedtype
|
||||
self.log.debug(("Injecting require for "
|
||||
|
|
Loading…
Reference in a new issue