Force fedmsg-hub to pick up the latest sqlalchemy.

This commit is contained in:
Ralph Bean 2013-08-01 14:31:29 +00:00
parent 0c3657430c
commit f9f1cf68fa
2 changed files with 28 additions and 0 deletions

View file

@ -0,0 +1,16 @@
#!/usr/bin/python
# This file is managed by ansible.
#
# Its like "permanent hotfix" so that the fedmsg-hub loads
# the forward-compat sqlalchemy.
#
__requires__ = ['fedmsg', "sqlalchemy>=0.7"]
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('fedmsg', 'console_scripts', 'fedmsg-hub')()
)

View file

@ -30,6 +30,18 @@
- config
- badges
# Here I'm "permanently" hotfixing the fedmsg-hub
# It needs to load the forward-compat sqlalchemy0.7 package from the get-go.
- name: copy over patched fedmsg-hub
template: >
src=patched-fedmsg-hub dest=/usr/bin/fedmsg-hub
owner=root group=root mode=0755
tags:
- patches
- hotfix
notify:
- restart fedmsg-hub
- name: copy over all our badge definitions
copy: >
src=$item