Don't download the same files twice in one cycle.

This commit is contained in:
Andrey Smirnov
2014-01-13 00:19:45 +04:00
parent d684c87fd1
commit 1268f744ab
4 changed files with 34 additions and 4 deletions
+3 -2
View File
@@ -144,8 +144,9 @@ func (s *RemoteRepoSuite) TestDownload(c *C) {
pkg, err := s.packageCollection.ByKey(s.repo.packageRefs.Refs[0])
c.Assert(err, IsNil)
// poolPath, _ := s.packageRepo.PoolPath(pkg.Filename, pkg.HashMD5)
// c.Check(pkg.VerifyFile(poolPath), Equals, true)
result, err := pkg.VerifyFiles(s.packageRepo)
c.Check(result, Equals, true)
c.Check(err, IsNil)
c.Check(pkg.Name, Equals, "amanda-client")
}