18 lines
366 B
Bash
Executable File
18 lines
366 B
Bash
Executable File
#!/bin/bash
|
|
|
|
repository_name="${1}"
|
|
repository_path="${3}"
|
|
|
|
[[ ${repository_name} == "gentoo" ]] || exit 0
|
|
|
|
source /lib/gentoo/functions.sh
|
|
|
|
GLSADIR="${repository_path}"/metadata/glsa
|
|
ebegin "Updating GLSAs"
|
|
if [[ -e ${GLSADIR} ]]; then
|
|
git -C "${GLSADIR}" pull -q --ff-only
|
|
else
|
|
git clone -q https://anongit.gentoo.org/git/data/glsa.git "${GLSADIR}"
|
|
fi
|
|
eend "$?"
|