The fix is valid also for rhpkg and moving it to rpkg will prevent code duplication.
Fixes: #398
Signed-off-by: Ondrej Nosek onosek@redhat.com
rebased onto fb15797b6824b1ab72535aabb396b3de57e2e5d6
Looks good to me.
Pull-Request has been merged by onosek
The fix is valid also for rhpkg and moving it to rpkg will prevent code
duplication.
Fixes: #398
Signed-off-by: Ondrej Nosek onosek@redhat.com