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

Commit caad0718 authored by Cole Faust's avatar Cole Faust Committed by Automerger Merge Worker
Browse files

Remove mk2rbc's support for using a product name am: ebf79bfb am: 2a50c472...

Remove mk2rbc's support for using a product name am: ebf79bfb am: 2a50c472 am: c1172a21 am: 01c44ac2

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1845613

Change-Id: Ib3f52e74b01800e08cf751883e3f9594c24614ad
parents 812583f0 01c44ac2
Loading
Loading
Loading
Loading
+1 −11
Original line number Diff line number Diff line
@@ -155,22 +155,12 @@ func main() {

	// Convert!
	files := flag.Args()
	productConfigMap := buildProductConfigMap()
	if *allInSource {
		productConfigMap := buildProductConfigMap()
		for _, path := range productConfigMap {
			files = append(files, path)
		}
	}
	for i, file := range files {
		if _, err := os.Stat(file); os.IsNotExist(err) {
			temp, ok := productConfigMap[file]
			if ok {
				files[i] = temp
			} else {
				quit(fmt.Errorf("%s is neither a product makefile nor a product name", file))
			}
		}
	}
	ok := true
	for _, mkFile := range files {
		ok = convertOne(mkFile) && ok