pkgcache.bin - check path before stat
This commit is contained in:
parent
df3dc42eb9
commit
01207e054a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue