Merge "Support install-clean and data-clean"
am: 6ff39230e8
Change-Id: I1657ca7f833923b5c85a19546ed149a89a588e6e
This commit is contained in:
@@ -166,11 +166,13 @@ func Build(ctx Context, config Config, what int) {
|
|||||||
runMakeProductConfig(ctx, config)
|
runMakeProductConfig(ctx, config)
|
||||||
}
|
}
|
||||||
|
|
||||||
if inList("installclean", config.Arguments()) {
|
if inList("installclean", config.Arguments()) ||
|
||||||
|
inList("install-clean", config.Arguments()) {
|
||||||
installClean(ctx, config, what)
|
installClean(ctx, config, what)
|
||||||
ctx.Println("Deleted images and staging directories.")
|
ctx.Println("Deleted images and staging directories.")
|
||||||
return
|
return
|
||||||
} else if inList("dataclean", config.Arguments()) {
|
} else if inList("dataclean", config.Arguments()) ||
|
||||||
|
inList("data-clean", config.Arguments()) {
|
||||||
dataClean(ctx, config, what)
|
dataClean(ctx, config, what)
|
||||||
ctx.Println("Deleted data files.")
|
ctx.Println("Deleted data files.")
|
||||||
return
|
return
|
||||||
|
Reference in New Issue
Block a user