Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com>
This commit is contained in:
Nicolas Lamirault 2016-01-12 23:08:24 +01:00
parent c6c7a070a9
commit 67183d6061
2 changed files with 2 additions and 3 deletions

View File

@ -104,7 +104,7 @@ func (detector *DpkgPackagesDetector) Detect(data map[string][]byte) ([]*databas
}
// GetRequiredFiles returns the list of files required for Detect, without
// leading /
// the leading /
func (detector *DpkgPackagesDetector) GetRequiredFiles() []string {
return []string{"var/lib/dpkg/status"}
}

View File

@ -34,7 +34,6 @@ func init() {
// Detect detects packages using /var/lib/pacman/local from the input data.
func (detector *PacmanPackagesDetector) Detect(data map[string][]byte) ([]*database.Package, error) {
log.Errorf("Pacman: %v", data)
db, hasFile := data["var/lib/pacman"]
if !hasFile {
return []*database.Package{}, nil
@ -71,7 +70,7 @@ func (detector *PacmanPackagesDetector) Detect(data map[string][]byte) ([]*datab
}
// GetRequiredFiles returns the list of files required for Detect, without
// leading /
// the leading /
func (detector *PacmanPackagesDetector) GetRequiredFiles() []string {
return []string{"var/lib/pacman"}
}