Fix kubuntu
This commit is contained in:
parent
6c90b90f51
commit
7b51047b4e
44
src/main.go
44
src/main.go
@ -49,10 +49,16 @@ func processFile(url string) map[string]string {
|
||||
|
||||
if currentPackage == "" {
|
||||
if strings.HasPrefix(line, "Package: ") {
|
||||
currentPackage = strings.TrimPrefix(line, "Package: ") + " "
|
||||
pkName := strings.TrimPrefix(line, "Package: ") + " "
|
||||
_, broken := brokenPackages[pkName]
|
||||
if !broken {
|
||||
currentPackage = pkName
|
||||
} else {
|
||||
currentPackage = ""
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if strings.HasPrefix(line, "Version: ") {
|
||||
if strings.HasPrefix(line, "Version: ") && currentPackage != "" {
|
||||
packages[currentPackage] = strings.TrimPrefix(line, "Version: ")
|
||||
}
|
||||
}
|
||||
@ -72,3 +78,37 @@ func compare(basePackages map[string]string, targetPackages map[string]string) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var brokenPackages = map[string]bool{
|
||||
"libkpim5mbox-data ": true,
|
||||
"libkpim5identitymanagement-data ": true,
|
||||
"libkpim5libkdepim-data ": true,
|
||||
"libkpim5imap-data ": true,
|
||||
"libkpim5ldap-data ": true,
|
||||
"libkpim5mailimporter-data ": true,
|
||||
"libkpim5mailtransport-data": true,
|
||||
"libkpim5akonadimime-data ": true,
|
||||
"libkpim5kontactinterface-data ": true,
|
||||
"libkpim5ksieve-data ": true,
|
||||
"libkpim5textedit-data ": true,
|
||||
"libk3b-data ": true,
|
||||
"libkpim5eventviews-data ": true,
|
||||
"libkpim5incidenceeditor-data ": true,
|
||||
"libkpim5calendarsupport-data ": true,
|
||||
"libkpim5calendarutils-data ": true,
|
||||
"libkpim5grantleetheme-data ": true,
|
||||
"libkpim5pkpass-data ": true,
|
||||
"libkpim5gapi-data ": true,
|
||||
"libkpim5akonadisearch-data ": true,
|
||||
"libkpim5gravatar-data ": true,
|
||||
"libkpim5akonadicontact-data ": true,
|
||||
"libkpim5akonadinotes-data ": true,
|
||||
"libkpim5libkleo-data ": true,
|
||||
"plasma-mobile-tweaks ": true,
|
||||
"libkpim5mime-data ": true,
|
||||
"libkf5textaddons-data ": true,
|
||||
"libkpim5smtp-data ": true,
|
||||
"libkpim5tnef-data ": true,
|
||||
"libkpim5akonadicalendar-data ": true,
|
||||
"libkpim5akonadi-data ": true,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user