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

Commit 5cb90e65 authored by Colin Cross's avatar Colin Cross Committed by android-build-merger
Browse files

Merge "Touch output files in sbox" am: 80eb6907

am: 9457c97c

Change-Id: I1ccf203667d12cebb306ada67a6771fe8696c010
parents 50ec1998 9457c97c
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@ import (
	"path"
	"path/filepath"
	"strings"
	"time"
)

var (
@@ -265,6 +266,15 @@ func run() error {
		if err != nil {
			return err
		}

		// Update the timestamp of the output file in case the tool wrote an old timestamp (for example, tar can extract
		// files with old timestamps).
		now := time.Now()
		err = os.Chtimes(tempPath, now, now)
		if err != nil {
			return err
		}

		err = os.Rename(tempPath, destPath)
		if err != nil {
			return err