When running redo-unlock, remove duplicate dependencies.

It's fairly harmless to pass duplicate dependencies to redo-unlock
(since it'll only check them once each anyway), but ultimately not
useful.
This commit is contained in:
Avery Pennarun 2018-11-20 10:02:32 -05:00
commit 2391f980be

View file

@ -228,7 +228,7 @@ class BuildJob:
def _fix(p):
return state.relpath(os.path.join(vars.BASE, p), here)
argv = (['redo-unlocked', _fix(self.sf.name)] +
[_fix(d.name) for d in dirty])
list(set(_fix(d.name) for d in dirty)))
meta('check', state.target_relpath(self.t))
state.commit()
def run():