From ea7057d9b6ceac424d1ba2727075cbc569474410 Mon Sep 17 00:00:00 2001 From: Avery Pennarun Date: Mon, 21 Feb 2011 03:55:18 -0800 Subject: [PATCH] redo-ifchange: remove special case for zero arguments. Not sure why I put there, but special cases aren't worth the hassle. --- builder.py | 1 + redo-ifchange.py | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/builder.py b/builder.py index 930da50..b655f35 100644 --- a/builder.py +++ b/builder.py @@ -297,6 +297,7 @@ def main(targets, shouldbuildfunc): # In the first cycle, we just build as much as we can without worrying # about any lock contention. If someone else has it locked, we move on. seen = {} + lock = None for t in targets: if t in seen: continue diff --git a/redo-ifchange.py b/redo-ifchange.py index cd3e71e..1247cc9 100755 --- a/redo-ifchange.py +++ b/redo-ifchange.py @@ -1,7 +1,5 @@ #!/usr/bin/python import sys, os -if not sys.argv[1:]: - sys.exit(0) # nothing to do, so we can't possibly do it wrong import vars_init vars_init.init(sys.argv[1:])