Browse Source

CUE LOUD GRUMBLING

Tianon Gravi 8 years ago
parent
commit
2a863261a8
1 changed files with 2 additions and 1 deletions
  1. 2 1
      bashbrew/go/src/bashbrew/cmd-put-shared.go

+ 2 - 1
bashbrew/go/src/bashbrew/cmd-put-shared.go

@@ -90,9 +90,10 @@ func cmdPutShared(c *cli.Context) error {
 		// turn them into SharedTagGroup objects so all manifest-tool invocations can be handled by a single process/loop
 		// turn them into SharedTagGroup objects so all manifest-tool invocations can be handled by a single process/loop
 		sharedTagGroups := []manifest.SharedTagGroup{}
 		sharedTagGroups := []manifest.SharedTagGroup{}
 		for _, entry := range r.Entries() {
 		for _, entry := range r.Entries() {
+			entryCopy := entry
 			sharedTagGroups = append(sharedTagGroups, manifest.SharedTagGroup{
 			sharedTagGroups = append(sharedTagGroups, manifest.SharedTagGroup{
 				SharedTags: entry.Tags,
 				SharedTags: entry.Tags,
-				Entries:    []*manifest.Manifest2822Entry{&entry},
+				Entries:    []*manifest.Manifest2822Entry{&entryCopy},
 			})
 			})
 		}
 		}