debconf: fix extra spaces, Name column ordering
This commit is contained in:
parent
053e07c319
commit
1cfc94a42b
@ -33,7 +33,7 @@ func Parse(r io.Reader) (*Database, error) {
|
||||
knownColumnNames := map[string]struct{}{
|
||||
"Name": struct{}{},
|
||||
}
|
||||
var discoveredColumns []string
|
||||
var discoveredColumns []string = []string{"Name"}
|
||||
|
||||
for sc.Scan() {
|
||||
linenum++
|
||||
@ -67,6 +67,8 @@ func Parse(r io.Reader) (*Database, error) {
|
||||
discoveredColumns = append(discoveredColumns, key)
|
||||
}
|
||||
|
||||
rest = strings.TrimLeft(rest, " \t")
|
||||
|
||||
if key == `Name` {
|
||||
wip.Name = rest
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user