2015-08-21 22:17:33 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
source "${PALUDIS_EBUILD_DIR}/echo_functions.bash"
|
|
|
|
source "/etc/paludis/hooks/set_portdir.bash"
|
|
|
|
|
|
|
|
if [[ ${TARGET} == gentoo ]] ; then
|
|
|
|
DTDDIR=${PORTDIR}/metadata/dtd
|
|
|
|
ebegin "Updating DTDs"
|
|
|
|
if [[ -e ${DTDDIR} ]]; then
|
2015-11-10 13:31:28 +00:00
|
|
|
git -C "${DTDDIR}" pull -q --ff-only
|
2015-08-21 22:17:33 +00:00
|
|
|
else
|
|
|
|
git clone -q https://anongit.gentoo.org/git/data/dtd.git "${DTDDIR}"
|
|
|
|
fi
|
|
|
|
eend "$?"
|
|
|
|
fi
|