ls -1 *.rpm | while read line
do
	NAMEARCH=`rpm -qp $line --qf "==%{name}==%{arch}=="`
	grep $NAMEARCH sl6.x86_64
	if [ $? -eq 0 ] ; then
		echo $line
		/bin/ln -fv $line ../../../x86_64/os/Packages/
	fi
done
#
#To create sl6.x86_64
#  cd /mnt/src/scientific/5rolling/x86_64/SL
#  ls -1 *.rpm | while read line
#  do
#    rpm -qp $line --qf "==%{name}==%{arch}==\n" >> /tmp/mock.x86_64
#  done
#  cp /tmp/mock.x86_64 /mnt/src/6/RPMS/koji.i386/sl6.x86_64
