2015-08-14 13:17:07 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
source "${PALUDIS_EBUILD_DIR}/echo_functions.bash"
|
2015-08-14 14:27:57 +00:00
|
|
|
source "${PALUDIS_EBUILD_DIR}/die_functions.bash"
|
2015-08-14 15:25:37 +00:00
|
|
|
source "/etc/paludis/hooks/set_portdir.bash"
|
2015-08-14 13:17:07 +00:00
|
|
|
|
|
|
|
|
|
|
|
cd "${PORTDIR}"/metadata || die "could not cd into '${PORTDIR}/metadata'!"
|
|
|
|
if [[ -e glsa ]] ; then
|
|
|
|
einfo "glsa dir already exists, updating..."
|
|
|
|
cd glsa || die "could not cd into 'glsa'!"
|
|
|
|
git pull --ff || die "could not pull updates!"
|
|
|
|
else
|
|
|
|
einfo "glsa directory does not exist, cloning..."
|
|
|
|
git clone https://anongit.gentoo.org/git/data/glsa.git || die "could not clone repository!"
|
|
|
|
fi
|
|
|
|
|