Switch to using internal debian control file parser.

This commit is contained in:
Andrey Smirnov
2013-12-23 17:13:09 +04:00
parent bf11f7b4bb
commit c38592dc02
6 changed files with 59 additions and 81 deletions
+9
View File
@@ -10,6 +10,15 @@ import (
// Stanza or paragraph of Debian control file
type Stanza map[string]string
// Copy returns copy of Stanza
func (s Stanza) Copy() (result Stanza) {
result = make(Stanza, len(s))
for k, v := range s {
result[k] = v
}
return
}
// Parsing errors
var (
ErrMalformedStanza = errors.New("malformed stanza syntax")