"all" architecture doesn't match "source", fix for missing checksums while publishing.

This commit is contained in:
Andrey Smirnov
2014-02-17 11:41:33 +04:00
parent e8de4db522
commit d999258744
2 changed files with 17 additions and 6 deletions
+5
View File
@@ -177,6 +177,11 @@ func (s *PackageSuite) TestMatchesArchitecture(c *C) {
p = NewPackageFromControlFile(s.stanza)
c.Check(p.MatchesArchitecture("i386"), Equals, true)
c.Check(p.MatchesArchitecture("amd64"), Equals, true)
c.Check(p.MatchesArchitecture("source"), Equals, false)
p, _ = NewSourcePackageFromControlFile(s.sourceStanza)
c.Check(p.MatchesArchitecture("source"), Equals, true)
c.Check(p.MatchesArchitecture("amd64"), Equals, false)
}
func (s *PackageSuite) TestGetDependencies(c *C) {