rm unused dkpg metadata, add dpkg source field, add analyzer source name

This commit is contained in:
Alex Goodman
2020-06-01 15:25:47 -04:00
parent 83e486d6ca
commit 17787f856f
8 changed files with 18 additions and 62 deletions
+3 -13
View File
@@ -4,17 +4,7 @@ package pkg
// Available fields are described at http://manpages.ubuntu.com/manpages/xenial/man1/dpkg-query.1.html
// in the --showformat section
type DpkgMetadata struct {
Package string `mapstructure:"Package"`
Architecture string `mapstructure:"Architecture"`
DependsPkgs string `mapstructure:"Depends"`
InstalledSize string `mapstructure:"Installed-Size"`
Maintainer string `mapstructure:"Maintainer"`
Priority string `mapstructure:"Priority"`
ProvidesPkgs string `mapstructure:"Provides"`
RecommendsPkgs string `mapstructure:"Recommends"`
ReplacesPkgs string `mapstructure:"Replaces"`
Status string `mapstructure:"Status"`
SuggestsPkgs string `mapstructure:"Suggests"`
Version string `mapstructure:"Version"`
ConfigFiles string `mapstructure:"Conffiles"`
Package string `mapstructure:"Package"`
Source string `mapstructure:"Source"`
Version string `mapstructure:"Version"`
}
+1
View File
@@ -13,6 +13,7 @@ type Package struct {
id ID
Name string
Version string
FoundBy string
Source []file.Reference
Licenses []string
Type Type