pkgcache.bin - check path before stat
This commit is contained in:
parent
df3dc42eb9
commit
01207e054a
|
@ -98,7 +98,7 @@ class LxcCollector
|
|||
end
|
||||
wr.write [:pkgs, {
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue