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

When there is more than one copy of a plugin, use the most local one (fix #2362) #2364

Merged
merged 4 commits into from Jun 4, 2016

Conversation

ralsina
Copy link
Member

@ralsina ralsina commented Jun 4, 2016

No description provided.

# Find repeated plugins and discard the less local copy
def plugin_position_in_places(plugin):
for i, place in enumerate(self._plugin_places):
if plugin[0].startswith(place):
Copy link
Member

Choose a reason for hiding this comment

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

could use some explainer comments that tell future readers what plugin is here, it took me a while to parse all this

@@ -28,7 +28,6 @@

from __future__ import print_function, unicode_literals
import io
from collections import defaultdict
Copy link
Member

Choose a reason for hiding this comment

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

Breaks everything!

Copy link
Member Author

Choose a reason for hiding this comment

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

Looks like it. I'll take a look when I come back

El sáb., jun. 4, 2016 14:55, Chris Warrick notifications@github.com
escribió:

In nikola/nikola.py
#2364 (comment):

@@ -28,7 +28,6 @@

from future import print_function, unicode_literals
import io
-from collections import defaultdict

Breaks everything!


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/getnikola/nikola/pull/2364/files/e06dc84de7647df6afee8700b444f73fb0e2384e#r65805487,
or mute the thread
https://github.com/notifications/unsubscribe/AAAGKxY67v-zXJwitNSEQSPBzO4YPB4Cks5qIbwYgaJpZM4IuKiY
.

Copy link
Member

Choose a reason for hiding this comment

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

I fixed it and I’m currently testing this. Will merge if all works okay (which it currently does)

@Kwpolska
Copy link
Member

Kwpolska commented Jun 4, 2016

Works okay, merging if there are no errors.

@Kwpolska Kwpolska merged commit 62020cd into master Jun 4, 2016
@Kwpolska Kwpolska deleted the avoid-plugin-conflict branch June 4, 2016 18:29
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.

None yet

2 participants