Don't put empty Source: fields into package stanza. #195

This commit is contained in:
Andrey Smirnov
2015-02-09 19:23:41 +03:00
parent 7925af9fd6
commit 1f73a34a54
7 changed files with 350 additions and 354 deletions
+3 -1
View File
@@ -427,7 +427,9 @@ func (p *Package) Stanza() (result Stanza) {
result["Architecture"] = p.SourceArchitecture
} else {
result["Architecture"] = p.Architecture
result["Source"] = p.Source
if p.Source != "" {
result["Source"] = p.Source
}
}
if p.IsSource {