[yadt] push by highjag...@gmail.com - switched yum parsing from gawk to sed to resolve newline problem on 2013-06-21 17:13 GMT

2 views
Skip to first unread message

ya...@googlecode.com

unread,
Jun 21, 2013, 1:14:02 PM6/21/13
to yadt-...@googlegroups.com
Revision: 5d1cff129d61
Branch: default
Author: highj...@gmail.com
Date: Fri Jun 21 10:13:17 2013
Log: switched yum parsing from gawk to sed to resolve newline problem
http://code.google.com/p/yadt/source/detail?r=5d1cff129d61

Modified:
/yadt-client/src/usr/bin/yadt-yum

=======================================
--- /yadt-client/src/usr/bin/yadt-yum Fri Jun 21 09:46:52 2013
+++ /yadt-client/src/usr/bin/yadt-yum Fri Jun 21 10:13:17 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=($(sed -e '1d' -e 's/ .*//' -e '/^$/d'))
+ UPDATES=($(yum -q list updates | sed -e '1d' -e 's/ .*//' -e '/^$/d'))

if [ "${#UPDATES[@]}" -gt 0 ] ; then
echo "${OPTIONS[@]}"
Reply all
Reply to author
Forward
0 new messages