Revision: c6f22326cb5a
Branch: default
Author:
highj...@gmail.com
Date: Fri Jun 21 09:46:52 2013
Log: switched yum parsing from gawk to sed to resolve newline problem
http://code.google.com/p/yadt/source/detail?r=c6f22326cb5a
Modified:
/yadt-client/src/usr/bin/yadt-yum
=======================================
--- /yadt-client/src/usr/bin/yadt-yum Tue Jun 18 07:47:51 2013
+++ /yadt-client/src/usr/bin/yadt-yum Fri Jun 21 09:46:52 2013
@@ -75,7 +75,7 @@
# 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
- UPDATES=($(yum -q list updates | gawk '!/Updated\ Packages/ {print
$1}'))
+ UPDATES=($(sed -e '1d' -e 's/ .*//' -e '/^$/d'))
if [ "${#UPDATES[@]}" -gt 0 ] ; then
echo "${OPTIONS[@]}"