summaryrefslogtreecommitdiff
path: root/parseDpkgOutputIntoPB.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-15 05:34:44 -0500
committerJeff Carr <[email protected]>2025-10-15 05:34:44 -0500
commit291f68c2e5e8b7d10ea62c92b1b67c31d5207ca2 (patch)
treec68f838776411c7b602c44d36b29ff9c44bc29fb /parseDpkgOutputIntoPB.go
parent4edcd924f3ba12bdcf952c563657d7d4cc8b8165 (diff)
fix Description
Diffstat (limited to 'parseDpkgOutputIntoPB.go')
-rw-r--r--parseDpkgOutputIntoPB.go8
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