summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikhail Kashkarov <m.kashkarov@partner.samsung.com>2019-09-03 19:43:35 +0300
committerMikhail Kashkarov <m.kashkarov@partner.samsung.com>2019-09-05 13:50:59 +0300
commite184975f9340ef27f06538039c6fbffd42b2f686 (patch)
tree1c4d8ea539038bec3b94e0a7409318c6e0d2c324
parent034885f92a8d17a2520a45d99d565c315cd3b288 (diff)
downloadqemu-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
-rw-r--r--packaging/qemu-accel-aarch64.spec5
-rw-r--r--packaging/qemu-accel-armv7hl.spec5
-rw-r--r--packaging/qemu-accel-armv7l.spec5
-rw-r--r--packaging/qemu-accel.spec.in5
4 files changed, 4 insertions, 16 deletions
diff --git a/packaging/qemu-accel-aarch64.spec b/packaging/qemu-accel-aarch64.spec
index c011fdf..eb096be 100644
--- a/packaging/qemu-accel-aarch64.spec
+++ b/packaging/qemu-accel-aarch64.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 {
diff --git a/packaging/qemu-accel-armv7hl.spec b/packaging/qemu-accel-armv7hl.spec
index 6d8cdb5..71dbf1b 100644
--- a/packaging/qemu-accel-armv7hl.spec
+++ b/packaging/qemu-accel-armv7hl.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 {
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 {
diff --git a/packaging/qemu-accel.spec.in b/packaging/qemu-accel.spec.in
index 192c077..7b27e7b 100644
--- a/packaging/qemu-accel.spec.in
+++ b/packaging/qemu-accel.spec.in
@@ -215,10 +215,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 {