From dcb22793b06cfdead1773e6c1ceed0e7d7aa8431 Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Mon, 22 Feb 2016 20:50:15 +0100 Subject: [PATCH] Fetch projects.xml instead --- README.md | 1 + repo.postsync.d/sync_gentoo_projects_xml | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 repo.postsync.d/sync_gentoo_projects_xml 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 $?