Force fedmsg-hub to pick up the latest sqlalchemy.
This commit is contained in:
parent
0c3657430c
commit
f9f1cf68fa
2 changed files with 28 additions and 0 deletions
16
roles/badges-backend/files/patched-fedmsg-hub
Normal file
16
roles/badges-backend/files/patched-fedmsg-hub
Normal 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')()
|
||||||
|
)
|
||||||
|
|
|
@ -30,6 +30,18 @@
|
||||||
- config
|
- config
|
||||||
- badges
|
- 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
|
- name: copy over all our badge definitions
|
||||||
copy: >
|
copy: >
|
||||||
src=$item
|
src=$item
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue