| Index: ensure_dependencies.py |
| diff --git a/ensure_dependencies.py b/ensure_dependencies.py |
| index b6557d051f6661645dea95edfde280ea288f7533..fba358717ec4d2e56bac13ef7d746e5b078c6ea0 100755 |
| --- a/ensure_dependencies.py |
| +++ b/ensure_dependencies.py |
| @@ -297,6 +297,10 @@ def _ensure_line_exists(path, pattern): |
| if __name__ == "__main__": |
| logging.basicConfig(format='%(levelname)s: %(message)s', level=logging.INFO) |
| + if os.environ.get("SKIP_ENSURE_DEPENDENCIES"): |
|
Sebastian Noack
2015/05/04 11:33:01
This will merely check whether the variable is set
kzar
2015/05/05 13:25:22
Well I realised that but sure, Done.
|
| + logging.warning("SKIP_ENSURE_DEPENDENCIES environment variable set, skipping.") |
|
Sebastian Noack
2015/05/04 11:33:01
I think I'd prefer to only show a warning if there
kzar
2015/05/05 13:25:22
Disagree with this one, I think that people that s
Sebastian Noack
2015/05/05 14:33:24
There are two situations in which people might use
Wladimir Palant
2015/05/05 14:46:37
While I'm not sure I agree with Sebastian's argume
kzar
2015/05/06 16:23:53
Felix / Matze - As you two are the main users/prop
Felix Dahlke
2015/05/06 16:31:23
Regarding the warning: Let's definitely have that
Sebastian Noack
2015/05/06 16:59:23
Nobody argues about that. We already have consensu
Felix Dahlke
2015/05/06 17:14:57
It'd be clear if you call it SKIP_DEPENDENCY_HG_UP
Wladimir Palant
2015/05/06 17:40:47
Mostly because these people never manage to provid
|
| + sys.exit() |
| + |
| parser = argparse.ArgumentParser(description="Verify dependencies for a set of repositories, by default the repository of this script.") |
| parser.add_argument("repos", metavar="repository", type=str, nargs="*", help="Repository path") |
| parser.add_argument("-q", "--quiet", action="store_true", help="Suppress informational output") |