diff options
Diffstat (limited to 'parseDpkgOutputIntoPB.go')
| -rw-r--r-- | parseDpkgOutputIntoPB.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/parseDpkgOutputIntoPB.go b/parseDpkgOutputIntoPB.go index f1a19a1..eb62a6c 100644 --- a/parseDpkgOutputIntoPB.go +++ b/parseDpkgOutputIntoPB.go @@ -154,6 +154,8 @@ func ParseDpkgOutputIntoPB(pb *zoopb.Package, all string) { pb.DebInfo.Packager = varval case "Depends": pb.DebInfo.Depends = varval + case "Recommends": + pb.DebInfo.Recommends = varval case "Source": pb.DebInfo.Source = varval case "URL": @@ -209,16 +211,18 @@ func ParseDpkgOutputIntoPB(pb *zoopb.Package, all string) { log.Info("FIXME: Git-Tag-Date", varval) } case "Description": - description := varval + description := varval + "\n" + // log.Info("SCANNED DESC=", description) for scanner.Scan() { line := scanner.Text() - if strings.HasPrefix(line, " ") { + if strings.HasPrefix(line, " ") { line = strings.TrimSpace(line) description += line + "\n" continue } break } + // log.Info("SCANNED DESC=", description) pb.DebInfo.Description = description default: // This forces me(it could be you!) to fix this parser |
