paludis-gentoo-git-config/etc/paludis/hooks/sync_all_post/03-sync_glsa.bash

14 lines
320 B
Bash
Raw Normal View History

2015-08-14 13:17:07 +00:00
#!/bin/bash
source "${PALUDIS_EBUILD_DIR}/echo_functions.bash"
source "/etc/paludis/hooks/set_portdir.bash"
2015-08-14 13:17:07 +00:00
GLSADIR=${PORTDIR}/metadata/glsa
ebegin "Updating GLSAs"
if [[ -e ${GLSADIR} ]]; then
git -C "${GLSADIR}" pull -q --ff
2015-08-14 13:17:07 +00:00
else
git clone -q https://anongit.gentoo.org/git/data/glsa.git "${GLSADIR}"
2015-08-14 13:17:07 +00:00
fi
eend "$?"