diff options
author | Ed Bartosh <eduard.bartosh@intel.com> | 2014-03-17 17:05:38 +0200 |
---|---|---|
committer | Eduard Bartosh <eduard.bartosh@intel.com> | 2014-03-18 15:23:09 +0200 |
commit | 917064a1e6ffa66a6c203516509657d711bf2a02 (patch) | |
tree | ff3ea5aaa50af7e270a655240637555b122dee78 /packaging | |
parent | 7df5c005d07e1f9e5762c95442570fe8a3866587 (diff) | |
download | repa-917064a1e6ffa66a6c203516509657d711bf2a02.tar.gz repa-917064a1e6ffa66a6c203516509657d711bf2a02.tar.bz2 repa-917064a1e6ffa66a6c203516509657d711bf2a02.zip |
Fixed crash when rejecting broken package
To obtain revision create_sr code queries source package and crashes
when source is broken with ObsError: <obs>cat't query source <package>
from project <prerelease project>: HTTP Error 400: service gbs failed
This makes it impossible to reject broken submissions.
This change catches exeption and tries to avoid querying the source by
providing revision 1 to create_sr API. As for rejecting it doesn't
matter much which revision to reject it should be safe.
Fixes: #1687
Change-Id: I21b9dda32686c94bfb8e81201424b3e7e7f128b5
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Reviewed-on: https://otctools.jf.intel.com/review/10674
Tested-by: OTC Tools Tester <ed.bartosh@linux.intel.com>
Diffstat (limited to 'packaging')
0 files changed, 0 insertions, 0 deletions