From 45cc887bdda51bd4ff8bdcf9baf99e902afa3835 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Sat, 9 Mar 2013 14:30:04 +0100 Subject: [PATCH] Reject invalid command combination --reset --no-update --- mass_build.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mass_build.py b/mass_build.py index 1732565..8f97546 100755 --- a/mass_build.py +++ b/mass_build.py @@ -75,6 +75,8 @@ parser.add_argument("--check-versions", parser.add_argument("projects", metavar='PROJECT', nargs='*', help="Manually specify projects or folders to be built (project names take precedence)") args = parser.parse_args() +if args.reset_source and not args.update: + raise Exception("Can not reset sources without doing an update") # load config config = imp.load_source('config', args.config).__dict__ -- 2.30.2