Fix bugs with publishing w/o source or short names.

This commit is contained in:
Andrey Smirnov
2013-12-26 17:28:37 +04:00
parent 47ffd1977a
commit bc2eba459f
3 changed files with 16 additions and 2 deletions
+4
View File
@@ -28,6 +28,10 @@ func (s *RepositorySuite) TestPoolPath(c *C) {
c.Assert(err, ErrorMatches, ".*is invalid")
}
func (s *RepositorySuite) TestPublicPath(c *C) {
c.Assert(s.repo.PublicPath(), Equals, filepath.Join(s.repo.RootPath, "public"))
}
func (s *RepositorySuite) TestMkDir(c *C) {
err := s.repo.MkDir("ppa/dists/squeeze/")
c.Assert(err, IsNil)