gentoo-server-config/hooks/sync_post/04-sync_gentoo_projects_xml.bash

11 lines
278 B
Bash
Raw Normal View History

2016-02-22 19:53:29 +00:00
#!/bin/bash
source "${PALUDIS_EBUILD_DIR}/echo_functions.bash"
source "/etc/paludis/hooks/set_portdir.bash"
if [[ ${TARGET} == gentoo ]] ; then
2016-02-22 19:56:18 +00:00
ebegin "Updating projects.xml"
2016-02-22 19:58:25 +00:00
wget -q -P "${PORTDIR}"/metadata/ -N https://api.gentoo.org/metastructure/projects.xml
2016-02-22 19:53:29 +00:00
eend $?
fi