add dpkg conffile update to json schema + json test snapshots

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
This commit is contained in:
Alex Goodman
2021-04-09 08:37:28 -04:00
parent 269832ce8d
commit ba3407a767
8 changed files with 911 additions and 15 deletions
@@ -80,6 +80,11 @@ func parseDpkgStatusEntry(reader *bufio.Reader) (pkg.DpkgMetadata, error) {
}
}
if entry.Files == nil {
// ensure that the collection is always allocated
entry.Files = make([]pkg.DpkgFileRecord, 0)
}
return entry, retErr
}