Hi guys... sorry for the slow response..
That error looks like the same one that occured with with the change from bash 3.x to v4...
Regardless, mkrepo is in need of a complete rewrite as there really is no good reason that it should be completely re-writing the sources.list file. I thought I had completed the rewrite around the same time I did the repo-speed-test, but I cannot find it. I was hoping to redo it last weekend, but other responsibilities prevailed; it probably won't happen this comming weekend either, as I will be busy with family activities.
For now, it is probably best to set up your build environment manually from konsole (..based on mkrepo):
(as regular user)
cd ~
PKGR_HOME_DIR=$HOME
mkdir -p $HOME/src/{apt/pclinuxos/2010/base,rpm/{BUILD,SOURCES,SPECS,SRPMS,RPMS/{athlon,i386,i486,i586,i686,noarch}},tmp}
cd $HOME/src/apt/pclinuxos/2010
ln -sf $HOME/src/rpm/RPMS/athlon/ RPMS.athlon
ln -sf $HOME/src/rpm/RPMS/i586/ RPMS.i586
ln -sf $HOME/src/rpm/RPMS/noarch/ RPMS.noarch
cd ~
(..the following is one command; copy and paste in entirety as regular user)
cat > .rpmrc << EOF
buildarchtranslate: i386: i586
buildarchtranslate: i486: i586
buildarchtranslate: i586: i586
buildarchtranslate: i686: i586
EOF
(..the following is one command; copy and paste in entirety as regular user)
cat > .rpmmacros << EOF
%_topdir $HOME/src/rpm
%_tmppath $HOME/src/tmp
%_enable_debug_packages %{nil}
%debug_package %{nil}
%distribution PCLinuxOS
%vendor PCLinuxOS
%distsuffix pclos
EOF
(..as root)
echo -e "rpm file:/$PKGR_HOME_DIR/src/apt/ pclinuxos/2010 athlon i586 noarch\n" >> /etc/apt/sources.list