BuildSourceImage: ensure that build from only SRPMS works

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2019-09-05 22:09:06 -04:00
parent adcad3d78a
commit 9078c53d4c
Signed by: vbatts
GPG key ID: 10937E57733F1362

View file

@ -656,9 +656,11 @@ sourcedriver_rpm_dir() {
local manifest_dir="${4}"
if [ -n "${RPM_DIR}" ]; then
_debug "$self: writing to $out_dir and $manifest_dir"
_debug "[$self] writing to $out_dir and $manifest_dir"
find "${RPM_DIR}" -type f -name '*src.rpm' | while read srcrpm ; do
cp "${srcrpm}" "${out_dir}"
srcrpm="$(basename ${srcrpm})"
_debug "[$self] --> ${srcrpm}"
local srcrpm_buildtime=$(rpm -qp --qf '%{buildtime}' ${out_dir}/${srcrpm} )
local srcrpm_pkgid=$(rpm -qp --qf '%{pkgid}' ${out_dir}/${srcrpm} )
local srcrpm_name=$(rpm -qp --qf '%{name}' ${out_dir}/${srcrpm} )