X-Git-Url: https://git.jankratochvil.net/?p=massrebuild.git;a=blobdiff_plain;f=runone;h=28d2c23ec9b4425e0dbb9242c8ce2631ac6f1802;hp=0eac9e09fbc47b53d3c0e91ce0932029123ec7ef;hb=3d5f8a1b10fd96f8d800be7b400cbe19a4517a03;hpb=c6f6050ad9716117deda0285572545a2a1621d6a diff --git a/runone b/runone index 0eac9e0..28d2c23 100755 --- a/runone +++ b/runone @@ -56,7 +56,7 @@ for pkg in "$@";do 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 @@ -78,7 +78,8 @@ for pkg in "$@";do 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