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)
|
lastcreatedtype)
|
||||||
else:
|
else:
|
||||||
if 'require' in self.env:
|
if 'require' in self.env:
|
||||||
self.env['require'] += " " + lastcreatedtype
|
appendix = " " + lastcreatedtype
|
||||||
|
if appendix not in self.env['require']:
|
||||||
|
self.env['require'] += appendix
|
||||||
else:
|
else:
|
||||||
self.env['require'] = lastcreatedtype
|
self.env['require'] = lastcreatedtype
|
||||||
self.log.debug(("Injecting require for "
|
self.log.debug(("Injecting require for "
|
||||||
|
|
Loading…
Reference in a new issue