gentoo-server-config/hooks/sync_post/04-sync_gentoo_projects_xml.bash
2016-02-22 20:56:18 +01:00

11 lines
287 B
Bash

#!/bin/bash
source "${PALUDIS_EBUILD_DIR}/echo_functions.bash"
source "/etc/paludis/hooks/set_portdir.bash"
if [[ ${TARGET} == gentoo ]] ; then
ebegin "Updating projects.xml"
wget -q -O "${PORTDIR}"/metadata/projects.xml https://api.gentoo.org/metastructure/projects.xml
eend $?
fi