+
+ # Old command is yum-arch
+ if [ $yum_arch -eq 1 ] ; then
+ yum-arch $repository
+ check
+ fi
+
+ # New command is createrepo
+ if [ $createrepo -eq 1 ] ; then
+ if [ -f $repository/yumgroups.xml ] ; then
+ createrepo -g yumgroups.xml $repository
+ else
+ createrepo $repository
+ fi
+ check
+ fi