From fb0fca708ff4b92c781890e85b324de9567597c9 Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Mon, 22 Feb 2016 20:52:49 +0100 Subject: [PATCH] Fetch projects.xml instead --- hooks/sync_post/04-sync_gentoo_projects_xml.bash | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 hooks/sync_post/04-sync_gentoo_projects_xml.bash diff --git a/hooks/sync_post/04-sync_gentoo_projects_xml.bash b/hooks/sync_post/04-sync_gentoo_projects_xml.bash new file mode 100644 index 0000000..8ee03a1 --- /dev/null +++ b/hooks/sync_post/04-sync_gentoo_projects_xml.bash @@ -0,0 +1,10 @@ +#!/bin/bash + +source "${PALUDIS_EBUILD_DIR}/echo_functions.bash" +source "/etc/paludis/hooks/set_portdir.bash" + +if [[ ${TARGET} == gentoo ]] ; then + ebegin "Updating herds.xml" + wget -q -O "${PORTDIR}"/metadata/projects.xml https://api.gentoo.org/metastructure/projects.xml + eend $? +fi