#1853 fix CGRefundBuild to release build properly
Merged by tkopecek. Opened by tkopecek.
tkopecek/koji issue1852  into  master

Download 1853.patch

CGInitBuild will fail on already existing build (even canceled/failed),
so it can't be used to reuse previously refunded nvr.

CGRefund build doesn't delete reservation. Having reservation token for
build which is no more in BUILDING doesn't make much sense and blocks
and reservation of same NVR.

Fixes: https://pagure.io/koji/issue/1852

@julian8628 @breilly

:thumbsup:

Metadata Update from @tkopecek:
- Pull-request tagged with: testing-ready

Commit 1865a0c8 fixes this pull-request

Pull-Request has been merged by tkopecek

Metadata Update from @jcupova:
- Pull-request tagged with: testing-done

Metadata