mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-24 07:01:13 +02:00
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
This commit is contained in:
parent
4e75efa930
commit
f7502a6e03
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user