continue
fi
- srcname=`cat $i|grep '^file:SRPMS'|cut -d: -f 3`
+ srcname=`grep '^file:SRPMS' $i|cut -d: -f 3`
if [ -f $FTP_DIR/$DEFAULT_TO/SRPMS/.metadata/$srcname.info ]; then
log "$srcname.info already present in $DEFAULT_TO; newer version removed"
rm $srcname
continue
fi
# Remove all files connected to the old src.rpm (+ the src.rpm itself)
- for i in `cat $oldinfofile|grep '^file:'`; do
+ for i in `grep '^file:' $oldinfofile`; do
arch=`echo $i|cut -d: -f 2`
file=`echo $i|cut -d: -f 3`
rm "$FTP_DIR/$to/$arch/RPMS/$file"
cd "$FTP_DIR/$from/SRPMS/.metadata/"
for srcfile in $files; do
# Move the rpms
- for i in `cat "$srcfile.src.rpm.info"|grep '^file:'`; do
+ for i in `grep '^file:' "$srcfile.src.rpm.info"`; do
arch=`echo $i|cut -d: -f 2`
file=`echo $i|cut -d: -f 3`
mv "$FTP_DIR/$from/$arch/RPMS/$file" "$FTP_DIR/$to/$arch/RPMS/"