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

11 lines
273 B
Bash
Raw Normal View History

2015-10-12 23:20:04 +00:00
#!/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/herds.xml https://api.gentoo.org/packages/herds.xml
eend $?
fi