Fixed bug in cleanup job
authorEd Bartosh <eduard.bartosh@intel.com>
Thu, 13 Feb 2014 11:57:10 +0000 (13:57 +0200)
committerLin A Yang <lin.a.yang@intel.com>
Fri, 21 Feb 2014 07:34:03 +0000 (09:34 +0200)
commit06b2b682a33d0881ae7f165a57795e0822478227
tree95be5fa1a3b9d0ed1d97a0f28da346a36810e590
parent7970efa26889fedb3e491e323b6db1ddb514c35b
Fixed bug in cleanup job

Cleanup job now takes project name either from 'project' or 'sourceproject'
field of the event structure, passed from OBS.

Previously it was taking project name only from 'project' field, which is set
for OBS_REPO_PUBLISHED event and is not set for SR_ACCEPTED event.
This was the reason for not removing prerelease projects when SR is accepted.

Fixes: #1649

Change-Id: Ie9d37f0dbba7e9d92a436e755ec0a32d636f7d3c
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
job_pre_release_obs.py