Fetch projects.xml instead

This commit is contained in:
Julian Ospald 2016-02-22 20:50:15 +01:00
parent 546100141d
commit dcb22793b0
No known key found for this signature in database
GPG Key ID: 220CD1C5BDEED020
2 changed files with 13 additions and 0 deletions

View File

@ -5,6 +5,7 @@ necessary to set up a gentoo github mirror based sync system:
* Updates metadata-cache.
* Updates the dtd directory.
* Updates the glsa directory.
* Updates `projects.xml` file
* Updates the news directory.
## Notes ##

View File

@ -0,0 +1,12 @@
#!/bin/bash
repository_name="${1}"
repository_path="${3}"
[[ ${repository_name} == "gentoo" ]] || exit 0
source /lib/gentoo/functions.sh
ebegin "Updating herds.xml"
wget -q -O "${repository_path}"/metadata/projects.xml https://api.gentoo.org/metastructure/projects.xml
eend $?