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{}{
|
knownColumnNames := map[string]struct{}{
|
||||||
"Name": struct{}{},
|
"Name": struct{}{},
|
||||||
}
|
}
|
||||||
var discoveredColumns []string
|
var discoveredColumns []string = []string{"Name"}
|
||||||
|
|
||||||
for sc.Scan() {
|
for sc.Scan() {
|
||||||
linenum++
|
linenum++
|
||||||
@ -67,6 +67,8 @@ func Parse(r io.Reader) (*Database, error) {
|
|||||||
discoveredColumns = append(discoveredColumns, key)
|
discoveredColumns = append(discoveredColumns, key)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
rest = strings.TrimLeft(rest, " \t")
|
||||||
|
|
||||||
if key == `Name` {
|
if key == `Name` {
|
||||||
wip.Name = rest
|
wip.Name = rest
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user