ppp - make it output on one line

This commit is contained in:
ferrreo 2023-08-24 20:49:52 +01:00
parent 98df9dfc01
commit 37f026ffb4
2 changed files with 3 additions and 3 deletions

BIN
ppp Normal file → Executable file

Binary file not shown.

View File

@ -49,7 +49,7 @@ func processFile(url string) map[string]string {
if currentPackage == "" { if currentPackage == "" {
if strings.HasPrefix(line, "Package: ") { if strings.HasPrefix(line, "Package: ") {
currentPackage = strings.TrimPrefix(line, "Package: ") currentPackage = strings.TrimPrefix(line, "Package: ") + " "
} }
} else { } else {
if strings.HasPrefix(line, "Version: ") { if strings.HasPrefix(line, "Version: ") {
@ -65,10 +65,10 @@ func compare(basePackages map[string]string, targetPackages map[string]string) {
for pack, version := range targetPackages { for pack, version := range targetPackages {
if baseVersion, ok := basePackages[pack]; ok { if baseVersion, ok := basePackages[pack]; ok {
if baseVersion != version { if baseVersion != version {
println(pack) print(pack)
} }
} else { } else {
println(pack) print(pack)
} }
} }
} }