continue
fi
- srcname=`cat $i|grep '^arch:SRPMS'|cut -d: -f 3`
+ srcname=`cat $i|grep '^file:SRPMS'|cut -d: -f 3`
if [ -f $FTP_DIR/$DEFAULT_TO/SRPMS/.metadata/$srcname.info ]; then
# TODO: Do something more interesting here
continue
fi
mv $name $FTP_DIR/$DEFAULT_TO/SRPMS/RPMS/
- echo "arch:SRPMS:$name">$FTP_DIR/$DEFAULT_TO/SRPMS/.metadata/$name.info
+ echo "file:SRPMS:$name">$FTP_DIR/$DEFAULT_TO/SRPMS/.metadata/$name.info
rm $i
done
continue
fi
- srcname=`cat $i|grep '^arch:SRPMS'|cut -d: -f 3`
+ srcname=`cat $i|grep '^file:SRPMS'|cut -d: -f 3`
if [ ! -f $FTP_DIR/$DEFAULT_TO/SRPMS/.metadata/$srcname.info ]; then
# TODO: Do something more interesting here
continue
fi
- for x in `cat $i|grep '^arch:ARCH'|cut -d: -f 3`; do
+ for x in `cat $i|grep '^file:ARCH'|cut -d: -f 3`; do
mv $x $FTP_DIR/$DEFAULT_TO/$arch/RPMS/
- echo "arch:$arch:$x" >> $FTP_DIR/$DEFAULT_TO/SRPMS/.metadata/$srcname.info
+ echo "file:$arch:$x" >> $FTP_DIR/$DEFAULT_TO/SRPMS/.metadata/$srcname.info
done
rm $i
continue
fi
# Remove all files connected to the old src.rpm (+ the src.rpm itself)
- for i in `cat $oldinfofile|grep '^arch'`; do
+ for i in `cat $oldinfofile|grep '^file:'`; do
arch=`echo $i|cut -d: -f 2`
file=`echo $i|cut -d: -f 3`
rm "$FTP_DIR/$to/RPMS/$arch/$file"
cd "$FTP_DIR/$from/SRPMS/.metadata/"
for srcfile in $files; do
# Move the rpms
- for i in `cat "$srcfile.src.rpm.info"|grep '^arch'`; do
+ for i in `cat "$srcfile.src.rpm.info"|grep '^file:'`; 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/"