Skip to content

Instantly share code, notes, and snippets.

@FrostyX
Last active April 3, 2017 19:13
Show Gist options
  • Save FrostyX/85670e21c49497b5857839a4584f2fbe to your computer and use it in GitHub Desktop.
Save FrostyX/85670e21c49497b5857839a4584f2fbe to your computer and use it in GitHub Desktop.
Workaround for Copr MBS on dev machine - publish message that build is done (not needed anymore)
import fedmsg
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('build_id', type=int)
parser.add_argument('pkg', type=int, help='See code of this script for possible indexes')
args = parser.parse_args()
pkgs = [None,
'module-build-macros-0.1-1.module_testmodule_master_20170223123453',
'perl-Tangerine-0.23-1.module_testmodule_master_20170223123453',
'perl-List-Compare-0.53-5.module_testmodule_master_20170223123453',
'tangerine-0.22-3.module_testmodule_master_20170223123453',
]
build_end = {
'build': args.build_id,
'pkg': pkgs[args.pkg],
'status': 1,
'user': 'frostyx',
'copr': 'module-testmodule-master-20170228215102',
'what': 'description what happened',
}
repo_change = {
'tag': 'module-testmodule-master-20170228215102-build',
}
#topic = 'build.end'
#fedmsg.publish(topic=topic, modname='copr', msg=msg)
fedmsg.publish(topic='build.end', modname='copr', msg=build_end)
print(build_end)
#fedmsg.publish(topic='repo.done', modname='buildsys', msg=repo_change)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment