Fetch projects.xml instead
This commit is contained in:
parent
546100141d
commit
dcb22793b0
@ -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 ##
|
||||
|
12
repo.postsync.d/sync_gentoo_projects_xml
Normal file
12
repo.postsync.d/sync_gentoo_projects_xml
Normal 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 $?
|
Loading…
Reference in New Issue
Block a user