[yadt] push by highjag...@gmail.com - simplifying the updates list parsing on 2013-06-18 14:48 GMT

1 view
Skip to first unread message

ya...@googlecode.com

unread,
Jun 18, 2013, 10:48:31 AM6/18/13
to yadt-...@googlegroups.com
Revision: 480f65b0b3fd
Branch: default
Author: highj...@gmail.com
Date: Tue Jun 18 07:47:51 2013
Log: simplifying the updates list parsing
http://code.google.com/p/yadt/source/detail?r=480f65b0b3fd

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

=======================================
--- /yadt-client/src/usr/bin/yadt-yum Mon Jun 17 05:26:18 2013
+++ /yadt-client/src/usr/bin/yadt-yum Tue Jun 18 07:47:51 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/ { pkgs=$1;
sub(/\.[a-z]+[_0-9]*$/,"",pkgs);printf pkgs" " }'))
+ UPDATES=($(yum -q list updates | gawk '!/Updated\ Packages/ {print
$1}'))

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