Append requirement only if already not present

This commit is contained in:
Darko Poljak 2019-05-01 12:31:30 +02:00
parent 6ad261fdf2
commit 2505023387

View file

@ -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 "