diff options
author | Michał Górny <mgorny@gentoo.org> | 2016-01-11 19:55:24 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2016-01-11 19:55:24 +0100 |
commit | 31556b0c1a59a1b19cf1a7f3b684966b9042739a (patch) | |
tree | 8e32bfebece1ee073f138c56e39d30d4a1cf81a9 /mastermirror-staging.sh | |
parent | Add notes about mastermirror-staging.sh (diff) | |
download | mastermirror-scripts-31556b0c1a59a1b19cf1a7f3b684966b9042739a.tar.gz mastermirror-scripts-31556b0c1a59a1b19cf1a7f3b684966b9042739a.tar.bz2 mastermirror-scripts-31556b0c1a59a1b19cf1a7f3b684966b9042739a.zip |
Include projects.xml in repository
Diffstat (limited to 'mastermirror-staging.sh')
-rwxr-xr-x | mastermirror-staging.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mastermirror-staging.sh b/mastermirror-staging.sh index 28f00d7..3952c4f 100755 --- a/mastermirror-staging.sh +++ b/mastermirror-staging.sh @@ -31,6 +31,7 @@ STAGING_DIR="/var/tmp/mastermirror-staging" STAGING_CHANGELOG_DIR="/var/tmp/mastermirror-staging/changelogs" HERDS_XML_URI=https://api.gentoo.org/packages/herds.xml +PROJECTS_XML_URI=https://api.gentoo.org/metastructure/projects.xml # TODO: we should probably be checking out to a directory and only rsyncing # that on success of all checkouts. @@ -68,6 +69,14 @@ cd ${STAGING_DIR}/herds f=herds.xml ${WGET} -q "${HERDS_XML_URI}" -O ${f}.tmp && mv -f ${f}{.tmp,} || rm -f ${f}.tmp +# projects.xml +if [[ ! -d ${STAGING_DIR}/projects ]]; then + mkdir -p ${STAGING_DIR}/projects +fi +cd ${STAGING_DIR}/projects +f=projects.xml +${WGET} -q "${PROJECTS_XML_URI}" -O ${f}.tmp && mv -f ${f}{.tmp,} || rm -f ${f}.tmp + # dtd if [[ ! -d ${STAGING_DIR}/dtd ]]; then # not checked out yet, run initial co |