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

sync: do not remove repositories on some errors #1787

Merged
merged 1 commit into from
Apr 18, 2018

Conversation

mssola
Copy link
Collaborator

@mssola mssola commented Apr 17, 2018

This commit is more explicit on what to do when a catalog error happens.
In this case, if a plain catalog error happens (fetching the list of
repositories and their manifests), then nothing will be done. If
fetching the catalog worked, and fetching the list of tags then suddenly
fails, before this commit that repo would've get nuked because it
would've get a repository with no tags.

This commit instructs to skip that repository when considering whether
to remove or not some repositories that are found to be dangling.

See #1293
See #1599

Signed-off-by: Miquel Sabaté Solà msabate@suse.com

@mssola mssola requested a review from vitoravelino April 17, 2018 14:33
@mssola
Copy link
Collaborator Author

mssola commented Apr 17, 2018

This commit depends on #1782. Do not merge it before merging that other one.

This commit is more explicit on what to do when a catalog error happens.
In this case, if a plain catalog error happens (fetching the list of
repositories and their manifests), then nothing will be done. If
fetching the catalog worked, and fetching the list of tags then suddenly
fails, before this commit that repo would've get nuked because it
would've get a repository with no tags.

This commit instructs to skip that repository when considering whether
to remove or not some repositories that are found to be dangling.

See SUSE#1293
See SUSE#1599

Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
@mssola mssola force-pushed the safer-update-catalog branch from afca581 to b976361 Compare April 18, 2018 07:43
@mssola
Copy link
Collaborator Author

mssola commented Apr 18, 2018

Now this can be reviewed 👍

Copy link
Contributor

@vitoravelino vitoravelino left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@mssola mssola merged commit 887765d into SUSE:master Apr 18, 2018
@mssola mssola deleted the safer-update-catalog branch April 18, 2018 13:29
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