diff options
author | Pascal Terjan <pterjan@gmail.com> | 2015-03-22 00:00:03 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@gmail.com> | 2015-03-22 00:00:03 +0000 |
commit | a055d908c314d952e799de8168feb8286f7f668a (patch) | |
tree | c63b9fe9d72de53b4c5d5441fa4dc12aa1630a00 /mga-move-pkg | |
parent | c6fe62058408dacc8fb0961e92a0798c54376f15 (diff) | |
download | mgatools-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
Diffstat (limited to 'mga-move-pkg')
-rwxr-xr-x | mga-move-pkg | 2 |
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") |