summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@gmail.com>2015-03-22 00:00:03 +0000
committerPascal Terjan <pterjan@gmail.com>2015-03-22 00:00:03 +0000
commita055d908c314d952e799de8168feb8286f7f668a (patch)
treec63b9fe9d72de53b4c5d5441fa4dc12aa1630a00
parentc6fe62058408dacc8fb0961e92a0798c54376f15 (diff)
downloadmgatools-a055d908c314d952e799de8168feb8286f7f668a.tar
mgatools-a055d908c314d952e799de8168feb8286f7f668a.tar.gz
mgatools-a055d908c314d952e799de8168feb8286f7f668a.tar.bz2
mgatools-a055d908c314d952e799de8168feb8286f7f668a.tar.xz
mgatools-a055d908c314d952e799de8168feb8286f7f668a.zip
Speedup on cauldron by not running rpm -qp on all SRPMS
-rwxr-xr-xmga-move-pkg2
1 files changed, 1 insertions, 1 deletions
diff --git a/mga-move-pkg b/mga-move-pkg
index ddf9983..120bb81 100755
--- a/mga-move-pkg
+++ b/mga-move-pkg
@@ -120,7 +120,7 @@ function find_srpms()
if [ 'release' = "${_destsubsections[$i]}" ]; then
# In cauldron we also have to move the old version from release to ~schedbot/old/
# We know srcname is a %{name} now.
- for file in "$distribdir/${_releases[$i]}/SRPMS/${_sections[$i]}/release/"*.rpm; do
+ for file in "$distribdir/${_releases[$i]}/SRPMS/${_sections[$i]}/release/${_pkgs[$i]}-"*.rpm; do
pkg=$(rpm -qp --qf '%{NAME}' "$file")
if [ "$pkg" = "${_pkgs[$i]}" ]; then
bfile=$(basename "$file")