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

lib/portus: do not remove all the repos if one fails #672

Merged
merged 1 commit into from
Jan 22, 2016

Conversation

mssola
Copy link
Collaborator

@mssola mssola commented Jan 21, 2016

Right now, the RegistryClient#catalog method can erase the DB of all the
repos. This happens when, for some unexpected reason, the
RegistryClient#add_tags method fails at retrieving one repository. In this
case, before this patch this method just returned an empty array. After this
patch, repositories that are not found will simply not be added, but the
method will go on adding tags to other repositories.

See #663

Signed-off-by: Miquel Sabaté Solà [email protected]

Right now, the `RegistryClient#catalog` method can erase the DB of all the
repos. This happens when, for some unexpected reason, the
`RegistryClient#add_tags` method fails at retrieving one repository. In this
case, before this patch this method just returned an empty array. After this
patch, repositories that are not found will simply not be added, but the
method will go on adding tags to other repositories.

See SUSE#663

Signed-off-by: Miquel Sabaté Solà <[email protected]>
@mssola
Copy link
Collaborator Author

mssola commented Jan 21, 2016

This should be cherry-picked into v2.0.

@flavio
Copy link
Member

flavio commented Jan 22, 2016

LGTM, please take care of the cherry-pick

mssola added a commit that referenced this pull request Jan 22, 2016
lib/portus: do not remove all the repos if one fails
@mssola mssola merged commit 94e601e into SUSE:master Jan 22, 2016
@mssola mssola deleted the registry branch January 22, 2016 09:00
@mssola
Copy link
Collaborator Author

mssola commented Jan 22, 2016

Done

@lonewulf lonewulf mentioned this pull request Feb 9, 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