test ! -e $resultdir
set +e
# --chain instead of --rebuild as otherwise -a does not work
- $mock --resultdir=$resultdir --nocheck -a https://people.redhat.com/jkratoch/dwzrepo/ --chain $srcrpm$ext &>$srcrpm$ext.mocklog
+ $mock --resultdir=$resultdir --nocheck $(: -a https://people.redhat.com/jkratoch/dwzrepo/ ) --chain $srcrpm$ext &>$srcrpm$ext.mocklog
rc=$?
set -e
test -e $resultdir
size=0
for i in $resultdir/*-debuginfo*.rpm;do
if [ -e "$i" ];then
- sizethis="$(rpm -q --qf '%{size}' -p $i)"
+ sizethis="$(rpm -q --qf '%{longsize}' -p $i)"
+ [[ "$sizethis" =~ ^[0-9]+$ ]]
size=$[$size+$sizethis]
fi
done