Revision: bf144e2032b6
Branch: default
Author:
kay.vog...@googlemail.com
Date: Thu Jun 13 02:29:20 2013
Log: change from Mr. Thormann to get system updates from Satellite
Repos for Redhat systems
http://code.google.com/p/yadt/source/detail?r=bf144e2032b6
Modified:
/yadt-client/src/usr/bin/yadt-yum
=======================================
--- /yadt-client/src/usr/bin/yadt-yum Wed Apr 17 04:43:49 2013
+++ /yadt-client/src/usr/bin/yadt-yum Thu Jun 13 02:29:20 2013
@@ -76,7 +76,7 @@
# perform updates, until there are no more left
while true; do
yum makecache > /dev/null 2>&1
- UPDATES=($($(type -p repoquery) -a --pkgnarrow=updates
--queryformat "%{name}" --cache))
+ UPDATES=($(yum -q --cacheonly list updates | gawk '!/Updated\
Packages/ { pkgs=$1; sub(/\.[a-z]+[_0-9]*$/,"",pkgs);printf pkgs" " }'))
if [ "${#UPDATES[@]}" -gt 0 ] ; then
echo "${OPTIONS[@]}"