Skip to content

Commit

Permalink
Merge pull request #881 from vvnotw/patch-1
Browse files Browse the repository at this point in the history
Fix mistake by copying code
  • Loading branch information
Louis DeLosSantos committed Feb 17, 2020
2 parents 06b8942 + 506b5a8 commit 8cdd815
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/featurefmt/dpkg/dpkg.go
Expand Up @@ -142,8 +142,8 @@ func parseDpkgDB(scanner *bufio.Scanner) (binaryPackage *database.Feature, sourc
}

if sourceName != "" && sourceVersion != "" {
if err := versionfmt.Valid(dpkg.ParserName, version); err != nil {
log.WithError(err).WithFields(log.Fields{"name": name, "version": version}).Warning("skipped unparseable package")
if err := versionfmt.Valid(dpkg.ParserName, sourceVersion); err != nil {
log.WithError(err).WithFields(log.Fields{"name": sourceName, "version": sourceVersion}).Warning("skipped unparseable package")
} else {
sourcePackage = &database.Feature{sourceName, sourceVersion, dpkg.ParserName, database.SourcePackage}
}
Expand Down

0 comments on commit 8cdd815

Please sign in to comment.