Closed Bug 1896688 Opened 2 months ago Closed 2 months ago

Prevent unnecessary os.stat call in jar.py

Categories

(Firefox Build System :: MozillaBuild, enhancement, P3)

enhancement

Tracking

(firefox128 fixed)

RESOLVED FIXED
128 Branch
Tracking Status
firefox128 --- fixed

People

(Reporter: ahochheiden, Assigned: ahochheiden)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

In jar.py we can skip getting the current ModTime if the DestModTime is 0 (file doesn't exist, so we can copy/symlink regardless).

If the destination file doesn't exist, we don't need to check the
current file's time, and we can just write or symlink regardless.

Pushed by ahochheiden@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/68213b170aab
Prevent unnecessary os.stat call in jar.py r=sergesanspaille
Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 128 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: