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

Add --force-full flag to publish command #849

Merged
merged 1 commit into from
Apr 21, 2016

Conversation

goosemania
Copy link
Member

If specified the full publication of the RPMs will be done even
when it is possible to make an incremental one.

closes #1158
https://pulp.plan.io/issues/1158

date_filter = None

if last_published and \
((last_deleted and last_published > last_deleted) or not last_deleted):
((last_deleted and last_published > last_deleted) or not last_deleted) and \
Copy link
Member

Choose a reason for hiding this comment

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

Similar simplification of this if statement as suggested here: pulp/pulp#2548 (comment)

@bmbouter
Copy link
Member

This branch has conflicts which need to be resolved.

@bmbouter
Copy link
Member

I'd like the comments addressed before merging, but I don't need a re-review. LGTM

@bmbouter bmbouter self-assigned this Apr 20, 2016
@bmbouter bmbouter assigned goosemania and unassigned bmbouter Apr 20, 2016
@goosemania goosemania removed the Bugfix label Apr 20, 2016
@goosemania
Copy link
Member Author

I've just noticed that even if last_publish is not None, it does not guarantee that the publish was a successful one. https://github.com/pulp/pulp/blob/master/server/pulp/plugins/conduits/repo_publish.py#L56-L57

But last_publish is used in pulp_rpm to decide if the publish should be an incremental one and also it is in a condition for no-op behavior in platform PR by @ipanova.

It looks like it is not safe to rely on this date. What do you think?

@goosemania
Copy link
Member Author

It turned out to be a wrong comment pulp/pulp#2551

If specified the full publication of the RPMs will be done even
when it is possible to make an incremental one.

closes pulp#1158
https://pulp.plan.io/issues/1158
@goosemania goosemania merged commit 7849304 into pulp:master Apr 21, 2016
@goosemania goosemania deleted the story1158 branch April 21, 2016 15:59
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.

2 participants