Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug when executing snapshot update #20

Merged
merged 3 commits into from
Jun 20, 2016
Merged

Fix bug when executing snapshot update #20

merged 3 commits into from
Jun 20, 2016

Conversation

karras
Copy link
Member

@karras karras commented Jun 17, 2016

This fixes #18. When executing snapshot update pyaptly fails if it encounters a publish endpoint, which directly publishes repos without snapshots.

snap_name = snapshot_spec_to_name(cfg, snap)
if snap_name in affected_snapshots:
return True
except KeyError:
Copy link

@rhizoome rhizoome Jun 18, 2016

Choose a reason for hiding this comment

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

Thanks a lot for the PR please consider adding # pragma: no cover or writing a test for the except case.

except KeyError:  # pragma: no cover

You can run make test to see if it is really fixed.

@winged winged merged commit 541952b into adfinis:master Jun 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

publish update fails for configs with direct published repos (without snapshot)
3 participants