clearer variable name than "i"

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2019-08-14 08:10:49 -04:00
parent f1e87285dc
commit 311730a347
Signed by: vbatts
GPG key ID: 10937E57733F1362

View file

@ -32,15 +32,15 @@ buildah rm ${IMAGE_CTR}
mkdir -p ${SRC_RPM_DIR} mkdir -p ${SRC_RPM_DIR}
pushd ${SRC_RPM_DIR} > /dev/null pushd ${SRC_RPM_DIR} > /dev/null
export SRC_CTR=$(buildah from scratch) export SRC_CTR=$(buildah from scratch)
for i in ${SRC_RPMS}; do for srpm in ${SRC_RPMS}; do
if [ ! -f $i ]; then if [ ! -f ${srpm} ]; then
RPM=$(echo $i | sed 's/.src.rpm$//g') RPM=$(echo ${srpm} | sed 's/.src.rpm$//g')
dnf download --release $RELEASE --source $RPM || continue dnf download --release $RELEASE --source $RPM || continue
fi fi
echo "Adding $i" echo "Adding ${srpm}"
touch --date=@`rpm -q --qf '%{buildtime}' $i` $i touch --date=@`rpm -q --qf '%{buildtime}' ${srpm}` ${srpm}
buildah add ${SRC_CTR} $i /RPMS/ buildah add ${SRC_CTR} ${srpm} /RPMS/
buildah config --created-by "/bin/sh -c #(nop) ADD file:$(sha256sum $i | cut -f1 -d' ') in /RPMS" ${SRC_CTR} buildah config --created-by "/bin/sh -c #(nop) ADD file:$(sha256sum ${srpm} | cut -f1 -d' ') in /RPMS" ${SRC_CTR}
export IMG=$(buildah commit --omit-timestamp --disable-compression --rm ${SRC_CTR}) export IMG=$(buildah commit --omit-timestamp --disable-compression --rm ${SRC_CTR})
export SRC_CTR=$(buildah from ${IMG}) export SRC_CTR=$(buildah from ${IMG})
done done