Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ale-rt/d9314ad6dfd811fc8e1c2310da7c901b to your computer and use it in GitHub Desktop.
Save ale-rt/d9314ad6dfd811fc8e1c2310da7c901b to your computer and use it in GitHub Desktop.
[instance]
eggs+=
${hotfix:eggs}
[hotfix]
recipe = mr.scripty
eggs=
from urllib import urlopen
version = self.buildout['versions']['Plone']
base_url = 'https://raw.githubusercontent.com/starzel/buildout/master/linkto/hotfixes/%s.cfg'
data = urlopen(base_url % version).read()
return data.partition('eggs +=')[-1].partition('[versions]')[0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment