git://git.jankratochvil.net
/
massrebuild.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
runone: .filesize: %{size} -> %{longsize}
[massrebuild.git]
/
runone
diff --git
a/runone
b/runone
index
0eac9e0
..
28d2c23
100755
(executable)
--- 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
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
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
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
size=$[$size+$sizethis]
fi
done