# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2006 The Trustees of Princeton University
#
-# $Id: packages,v 1.7 2007/02/04 01:05:28 mlhuang Exp $
+# $Id: packages 129 2007-03-20 12:04:03Z thierry $
#
# Source function library and configuration
# Old command is yum-arch
if [ $yum_arch -eq 1 ] ; then
- yum-arch $repository
+ yum-arch $repository | tr '\r' '\n' | grep -v '^ *$'
check
fi
# New command is createrepo
if [ $createrepo -eq 1 ] ; then
if [ -f $repository/yumgroups.xml ] ; then
- createrepo -g yumgroups.xml $repository
+ createrepo -g yumgroups.xml $repository | tr '\r' '\n' | grep -v '^ *$'
else
- createrepo $repository
+ createrepo $repository | tr '\r' '\n' | grep -v '^ *$'
fi
check
fi