Fix m product-graph
am: 521e951ad4
am: ec84292f1b
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1826630 Change-Id: I81a5f27e68b6c54af7016d71c7c627184f0ea6d5
This commit is contained in:
@@ -250,7 +250,10 @@ func cleanOldFiles(ctx Context, basePath, newFile string) {
|
||||
newFile = filepath.Join(basePath, newFile)
|
||||
oldFile := newFile + ".previous"
|
||||
|
||||
if _, err := os.Stat(newFile); err != nil {
|
||||
if _, err := os.Stat(newFile); os.IsNotExist(err) {
|
||||
// If the file doesn't exist, assume no installed files exist either
|
||||
return
|
||||
} else if err != nil {
|
||||
ctx.Fatalf("Expected %q to be readable", newFile)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user