Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

Updated sync to always copy new images and manifests to HIDDEN repo #59

Merged
merged 1 commit into from
Jun 23, 2016

Conversation

breillyr
Copy link
Collaborator

syncRepo now returns a tuple of new images and manifests instead of old repo information.

twaugh added a commit to containerbuildsystem/atomic-reactor that referenced this pull request Jun 22, 2016
The dockpulp syncRepo() method no longer returns the prefixed
repository ID. As pulp_sync can be told what the prefix is, let's just
use that to work out what the prefixed repository ID is.

dockpulp change:
release-engineering/dockpulp#59
else:
oldmanifests = repoinfo['manifests'].keys()

repoinfo = self.listRepos(repo, True)
Copy link
Collaborator

@twaugh twaugh Jun 22, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't you already have this from line 879?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, you need to do it twice to see which units are new, I see now.

@twaugh
Copy link
Collaborator

twaugh commented Jun 23, 2016

Now that syncRepo() no longer returns the repository ID I've adjusted atomic-reactor's pulp_sync plugin so that it doesn't rely on that. Instead it finds out the prefix from a configuration parameter and works out the repository ID from that. Even better would be for dockpulp to be able to tell it the prefix (#56).

@twaugh
Copy link
Collaborator

twaugh commented Jun 23, 2016

LGTM

@breillyr breillyr merged commit de816ba into release-engineering:master Jun 23, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants