Remove trailing / from install path

am: e14388b9de

* commit 'e14388b9de3377955b66dc294481e23dd753ff9e':
  Remove trailing / from install path

Change-Id: I8a2e724b4cbd4336b1eea888978ae33b783eb63e
This commit is contained in:
Colin Cross
2016-05-04 00:33:16 +00:00
committed by android-build-merger

View File

@@ -119,7 +119,7 @@ func (installer *baseInstaller) AndroidMk(ret *common.AndroidMkData) {
path := installer.path.RelPathString() path := installer.path.RelPathString()
dir, file := filepath.Split(path) dir, file := filepath.Split(path)
stem := strings.TrimSuffix(file, filepath.Ext(file)) stem := strings.TrimSuffix(file, filepath.Ext(file))
fmt.Fprintln(w, "LOCAL_MODULE_PATH := $(OUT_DIR)/"+dir) fmt.Fprintln(w, "LOCAL_MODULE_PATH := $(OUT_DIR)/"+filepath.Clean(dir))
fmt.Fprintln(w, "LOCAL_MODULE_STEM := "+stem) fmt.Fprintln(w, "LOCAL_MODULE_STEM := "+stem)
return nil return nil
}) })