Revision: 16e20deee42f
Branch: default
Author:
kay.vog...@gmail.com
Date: Fri Mar 15 04:09:01 2013
Log: move yum nakecache over the repoquery search
http://code.google.com/p/yadt/source/detail?r=16e20deee42f
Modified:
/yadt-client/src/usr/bin/yadt-yum
=======================================
--- /yadt-client/src/usr/bin/yadt-yum Thu Mar 14 10:00:19 2013
+++ /yadt-client/src/usr/bin/yadt-yum Fri Mar 15 04:09:01 2013
@@ -55,8 +55,7 @@
# clean up important yum cache parts if it is configured and make cache
if [ "$YUMCACHE_CLEAN_OPTS" ]; then
echo "execute yum clean $YUMCACHE_CLEAN_OPTS"
- yum clean $YUMCACHE_CLEAN_OPTS > /dev/null 2>&1
- yum makecache > /dev/null 2>&1
+ yum clean $YUMCACHE_CLEAN_OPTS > /dev/null 2>&1
fi
if [ "${PARAMETERS[1]}" ] ; then
@@ -69,7 +68,8 @@
# if no arguments are given then we call yum and specify all upgrades
from
# YUM channels in our call to yum. That prevents unwanted upgrades from
RHN channels
# perform updates, until there are no more left
- while true; do
+ while true; do
+ yum makecache > /dev/null 2>&1
UPDATES=( $(repoquery -a --pkgnarrow=updates --queryformat "%{name}"
--cache) )
if [ "${#UPDATES[@]}" -gt 0 ] ; then