stop targets dir being created, we don't use it

Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
This commit is contained in:
David Lawrence
2015-07-18 22:30:14 -07:00
parent 54d40f2ae3
commit c9732dd9cb
2 changed files with 3 additions and 4 deletions

View File

@@ -214,7 +214,7 @@ func (r *NotaryRepository) Initialize(uCryptoService *cryptoservice.UnlockedCryp
r.tufRepoPath,
"metadata",
"json",
"targets",
"",
)
if err != nil {
return err
@@ -425,7 +425,7 @@ func (r *NotaryRepository) bootstrapRepo() error {
r.tufRepoPath,
"metadata",
"json",
"targets",
"",
)
if err != nil {
return err
@@ -511,7 +511,7 @@ func (r *NotaryRepository) bootstrapClient() (*tufclient.Client, error) {
filepath.Join(r.tufRepoPath, "cache"),
"metadata",
"json",
"targets",
"",
)
if err != nil {
cache = store.NewMemoryStore(nil, nil)

View File

@@ -87,7 +87,6 @@ func testInitRepo(t *testing.T, rootType data.KeyAlgorithm) {
filepath.Join("trusted_certificates", filepath.FromSlash(gun)),
"tuf",
filepath.Join("tuf", filepath.FromSlash(gun), "metadata"),
filepath.Join("tuf", filepath.FromSlash(gun), "targets"),
}
for _, dir := range expectedDirs {
fi, err := os.Stat(filepath.Join(tempBaseDir, dir))