Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7e793aa1 authored by Colin Cross's avatar Colin Cross Committed by android-build-merger
Browse files

Merge "Support install-clean and data-clean"

am: 6ff39230

Change-Id: I1657ca7f833923b5c85a19546ed149a89a588e6e
parents 9da19e15 6ff39230
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -166,11 +166,13 @@ func Build(ctx Context, config Config, what int) {
		runMakeProductConfig(ctx, config)
	}

	if inList("installclean", config.Arguments()) {
	if inList("installclean", config.Arguments()) ||
		inList("install-clean", config.Arguments()) {
		installClean(ctx, config, what)
		ctx.Println("Deleted images and staging directories.")
		return
	} else if inList("dataclean", config.Arguments()) {
	} else if inList("dataclean", config.Arguments()) ||
		inList("data-clean", config.Arguments()) {
		dataClean(ctx, config, what)
		ctx.Println("Deleted data files.")
		return