ppp - make it output on one line
This commit is contained in:
parent
98df9dfc01
commit
37f026ffb4
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user