From f7502a6e03df7073fc0ce17b15c7f2349175fe0e Mon Sep 17 00:00:00 2001 From: David James Date: Mon, 15 Nov 2010 18:09:10 -0800 Subject: [PATCH] Special-case preflight clean to allow for missing directories. If there's no directory, I guess things are really, really clean. BUG=chromium-os:9197 TEST=Ran cros_mark_as_stable.py clean with missing overlay directories. Change-Id: I3f4811fe01bca56e850f823a973476884292e278 Review URL: http://codereview.chromium.org/4988004 --- cros_mark_as_stable.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cros_mark_as_stable.py b/cros_mark_as_stable.py index a6888439ed..b2f2cd4067 100755 --- a/cros_mark_as_stable.py +++ b/cros_mark_as_stable.py @@ -496,7 +496,7 @@ def main(argv): if gflags.FLAGS.overlays: overlays = {} for path in gflags.FLAGS.overlays.split(':'): - if not os.path.isdir(path): + if command != 'clean' and not os.path.isdir(path): Die('Cannot find overlay: %s' % path) overlays[path] = [] else: