diff --git a/README.md b/README.md index 8648083..de6b547 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ necessary to set up a gentoo github mirror based sync system: * Updates metadata-cache. * Updates the dtd directory. * Updates the glsa directory. +* Updates `projects.xml` file * Updates the news directory. ## Notes ## diff --git a/repo.postsync.d/sync_gentoo_projects_xml b/repo.postsync.d/sync_gentoo_projects_xml new file mode 100644 index 0000000..e3583a1 --- /dev/null +++ b/repo.postsync.d/sync_gentoo_projects_xml @@ -0,0 +1,12 @@ +#!/bin/bash + +repository_name="${1}" +repository_path="${3}" + +[[ ${repository_name} == "gentoo" ]] || exit 0 + +source /lib/gentoo/functions.sh + +ebegin "Updating herds.xml" +wget -q -O "${repository_path}"/metadata/projects.xml https://api.gentoo.org/metastructure/projects.xml +eend $?