]> git.proxmox.com Git - pmg-api.git/commit
utils: check if file changed before reusing its hash
authorMaximiliano Sandoval <m.sandoval@proxmox.com>
Thu, 31 Aug 2023 14:41:13 +0000 (16:41 +0200)
committerStoiko Ivanov <s.ivanov@proxmox.com>
Tue, 12 Sep 2023 14:58:34 +0000 (16:58 +0200)
commit16d2ff9f8e90db64114a66d78672f5a03f5ee990
treea87233378f2c6c46d950011fcc1b568e5396560c
parentc807df9f351c9db7a547645a45f9daf44e9a95f7
utils: check if file changed before reusing its hash

We cache the hash of this file, it makes sense to first check if the
file changed via `stat` and recompute the hash if needed.

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
src/PMG/Utils.pm