fi
done
for arch in $architectures; do
+ dirs_to_upd="${dirs_to_upd} ${ftpdir}/${d}/${arch}"
for l in $d/$arch/Packages/*; do
if test -L "$l"; then
if test ! -f "$l"; then
has_packages=true
fi
done
- dirs_to_upd="${dirs_to_upd} ${ftpdir}/${d}/${arch}"
done
fi
fi
chgrp staff ${pkgs_to_sign}
chmod g+w ${pkgs_to_sign}
echo "Updating repository meta:"
-echo ${dirs_to_upd}
for rdir in ${dirs_to_upd}; do
- createrepo --update ${rdir}
- if test -f ${rdir}/repodata/repomd.xml.asc; then
- rm ${rdir}/repodata/repomd.xml.asc
+ echo "Section ${rdir}"
+ if test -d $rdir && ls -A $rdir; then
+ createrepo --update ${rdir}
+ if test -f ${rdir}/repodata/repomd.xml.asc; then
+ rm ${rdir}/repodata/repomd.xml.asc
+ fi
+ gpg --detach-sign -u "Index Data" --armor ${rdir}/repodata/repomd.xml
+ else
+ echo "Empty."
fi
- gpg --detach-sign -u "Index Data" --armor ${rdir}/repodata/repomd.xml
done
# Local Variables:
# mode:shell-script
# sh-indentation: 2
# sh-basic-offset: 8
# End:
-