pkgcache.bin - check path before stat

This commit is contained in:
Denis Knauf 2024-11-29 22:21:19 +01:00
parent df3dc42eb9
commit 01207e054a

View file

@ -98,7 +98,7 @@ class LxcCollector
end end
wr.write [:pkgs, { wr.write [:pkgs, {
id: ct.name, name: name, upgradable: upgradable, id: ct.name, name: name, upgradable: upgradable,
last_update: AptLastUpdateFile.stat.mtime.to_f, last_update: AptLastUpdateFile.exist? ? AptLastUpdateFile.stat.mtime.to_f : -1,
}] }]
end end
end end