mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-03 10:01:44 +08:00
Force fedmsg-hub to pick up the latest sqlalchemy.
This commit is contained in:
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
|
||||
- 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
|
||||
|
||||
Reference in New Issue
Block a user