patchinfos have no release project!

This commit is contained in:
Ludwig Nussel 2015-05-26 10:20:43 +02:00
parent e69a762f4d
commit 7cbedd5e19

View File

@ -154,6 +154,7 @@ class ReviewBot(object):
def check_action_maintenance_incident(self, req, a):
dst_package = a.src_package
# dirty obs crap
if a.tgt_releaseproject is not None:
ugly_suffix = '.'+a.tgt_releaseproject.replace(':', '_')
if dst_package.endswith(ugly_suffix):
dst_package = dst_package[:-len(ugly_suffix)]