Commit 25050233 authored by Darko Poljak's avatar Darko Poljak

Append requirement only if already not present

parent 6ad261fd
......@@ -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 "
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment