diff options
author | Mikhail Kashkarov <m.kashkarov@partner.samsung.com> | 2019-09-03 19:43:35 +0300 |
---|---|---|
committer | Mikhail Kashkarov <m.kashkarov@partner.samsung.com> | 2019-09-05 13:50:59 +0300 |
commit | e184975f9340ef27f06538039c6fbffd42b2f686 (patch) | |
tree | 1c4d8ea539038bec3b94e0a7409318c6e0d2c324 /packaging/qemu-accel-armv7l.spec | |
parent | 034885f92a8d17a2520a45d99d565c315cd3b288 (diff) | |
download | qemu-accel-e184975f9340ef27f06538039c6fbffd42b2f686.tar.gz qemu-accel-e184975f9340ef27f06538039c6fbffd42b2f686.tar.bz2 qemu-accel-e184975f9340ef27f06538039c6fbffd42b2f686.zip |
[S] Speed up used packages list preparation
Process list with single rpm exec, decrease time from ~20sec to <1sec
Change-Id: Iff9e00bac0b017707089ef49a669304fcbcc2dcc
Diffstat (limited to 'packaging/qemu-accel-armv7l.spec')
-rw-r--r-- | packaging/qemu-accel-armv7l.spec | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/packaging/qemu-accel-armv7l.spec b/packaging/qemu-accel-armv7l.spec index 86130b2..091ea00 100644 --- a/packaging/qemu-accel-armv7l.spec +++ b/packaging/qemu-accel-armv7l.spec @@ -218,10 +218,7 @@ prepare_package_list python \ echo "### Binaries accelerated ###" echo $binaries | sed -e 's/[^ ]*\///g;s/[^ ]*.so[^ ]* \?//g' echo "### Packages used ###" -for bin in $binaries -do - rpm -qf $bin -done | grep -v "not owned" | sed -e "s/-[0-9].*//g" | sort -u +rpm -qf $binaries | grep -v "not owned" | sed -e "s/-[0-9].*//g" | sort -u echo "" function patch_binary { |