|
@@ -132,7 +132,6 @@ func (s *TagStore) pullRepository(r *registry.Session, out io.Writer, repoInfo *
|
|
|
|
|
|
log.Debugf("Registering tags")
|
|
|
// If no tag has been specified, pull them all
|
|
|
- var imageId string
|
|
|
if askedTag == "" {
|
|
|
for tag, id := range tagsList {
|
|
|
repoData.ImgList[id].Tag = tag
|
|
@@ -143,7 +142,6 @@ func (s *TagStore) pullRepository(r *registry.Session, out io.Writer, repoInfo *
|
|
|
if !exists {
|
|
|
return fmt.Errorf("Tag %s not found in repository %s", askedTag, repoInfo.CanonicalName)
|
|
|
}
|
|
|
- imageId = id
|
|
|
repoData.ImgList[id].Tag = askedTag
|
|
|
}
|
|
|
|
|
@@ -247,7 +245,7 @@ func (s *TagStore) pullRepository(r *registry.Session, out io.Writer, repoInfo *
|
|
|
|
|
|
}
|
|
|
for tag, id := range tagsList {
|
|
|
- if askedTag != "" && id != imageId {
|
|
|
+ if askedTag != "" && tag != askedTag {
|
|
|
continue
|
|
|
}
|
|
|
if err := s.Set(repoInfo.LocalName, tag, id, true); err != nil {
|