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