Merge branch 'master' of git://github.com/zx2c4/portage-gentoo-git-config
This commit is contained in:
commit
a309c48677
@ -1,5 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
[[ ${repository_name} == "gentoo" ]] || exit 0
|
||||
|
||||
source /lib/gentoo/functions.sh
|
||||
|
||||
repository_name="${1}"
|
||||
@ -8,12 +10,10 @@ repository_path="${3}"
|
||||
# Number of jobs for egencache, default is number or processors.
|
||||
parallel_jobs="$(nproc)"
|
||||
|
||||
if [[ ${repository_name} == "gentoo" ]]; then
|
||||
ebegin "Fetching pre-generated metadata cache for ${repository_name}"
|
||||
rsync -aq rsync://rsync.gentoo.org/gentoo-portage/metadata/md5-cache/ "${repository_path}"/metadata/md5-cache/
|
||||
eend $?
|
||||
ebegin "Fetching pre-generated metadata cache for ${repository_name}"
|
||||
rsync -aq rsync://rsync.gentoo.org/gentoo-portage/metadata/md5-cache/ "${repository_path}"/metadata/md5-cache/
|
||||
eend $?
|
||||
|
||||
ebegin "Updating metadata cache for ${repository_name}"
|
||||
egencache --jobs="${parallel_jobs}" --repo="${repository_name}" --update --update-use-local-desc
|
||||
eend $?
|
||||
fi
|
||||
ebegin "Updating metadata cache for ${repository_name}"
|
||||
egencache --jobs="${parallel_jobs}" --repo="${repository_name}" --update --update-use-local-desc
|
||||
eend $?
|
||||
|
@ -1,17 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
[[ ${repository_name} == "gentoo" ]] || exit 0
|
||||
|
||||
source /lib/gentoo/functions.sh
|
||||
|
||||
repository_name="${1}"
|
||||
repository_path="${3}"
|
||||
|
||||
if [[ ${repository_name} == "gentoo" ]]; then
|
||||
DTDDIR="${repository_path}"/metadata/dtd
|
||||
ebegin "Updating DTDs"
|
||||
if [[ -e ${DTDDIR} ]]; then
|
||||
git -C "${DTDDIR}" pull -q --ff
|
||||
else
|
||||
git clone -q https://anongit.gentoo.org/git/data/dtd.git "${DTDDIR}"
|
||||
fi
|
||||
eend "$?"
|
||||
DTDDIR="${repository_path}"/metadata/dtd
|
||||
ebegin "Updating DTDs"
|
||||
if [[ -e ${DTDDIR} ]]; then
|
||||
git -C "${DTDDIR}" pull -q --ff
|
||||
else
|
||||
git clone -q https://anongit.gentoo.org/git/data/dtd.git "${DTDDIR}"
|
||||
fi
|
||||
eend "$?"
|
||||
|
@ -1,17 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
[[ ${repository_name} == "gentoo" ]] || exit 0
|
||||
|
||||
source /lib/gentoo/functions.sh
|
||||
|
||||
repository_name="${1}"
|
||||
repository_path="${3}"
|
||||
|
||||
if [[ ${repository_name} == "gentoo" ]]; then
|
||||
GLSADIR="${repository_path}"/metadata/glsa
|
||||
ebegin "Updating GLSAs"
|
||||
if [[ -e ${GLSADIR} ]]; then
|
||||
git -C "${GLSADIR}" pull -q --ff
|
||||
else
|
||||
git clone -q https://anongit.gentoo.org/git/data/glsa.git "${GLSADIR}"
|
||||
fi
|
||||
eend "$?"
|
||||
GLSADIR="${repository_path}"/metadata/glsa
|
||||
ebegin "Updating GLSAs"
|
||||
if [[ -e ${GLSADIR} ]]; then
|
||||
git -C "${GLSADIR}" pull -q --ff
|
||||
else
|
||||
git clone -q https://anongit.gentoo.org/git/data/glsa.git "${GLSADIR}"
|
||||
fi
|
||||
eend "$?"
|
||||
|
@ -1,12 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
[[ ${repository_name} == "gentoo" ]] || exit 0
|
||||
|
||||
source /lib/gentoo/functions.sh
|
||||
|
||||
repository_name="${1}"
|
||||
repository_path="${3}"
|
||||
|
||||
if [[ ${repository_name} == "gentoo" ]]; then
|
||||
ebegin "Updating herds.xml"
|
||||
wget -q -O "${repository_path}"/metadata/herds.xml https://api.gentoo.org/packages/herds.xml
|
||||
eend $?
|
||||
fi
|
||||
ebegin "Updating herds.xml"
|
||||
wget -q -O "${repository_path}"/metadata/herds.xml https://api.gentoo.org/packages/herds.xml
|
||||
eend $?
|
||||
|
@ -1,17 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
[[ ${repository_name} == "gentoo" ]] || exit 0
|
||||
|
||||
source /lib/gentoo/functions.sh
|
||||
|
||||
repository_name="${1}"
|
||||
repository_path="${3}"
|
||||
|
||||
if [[ ${repository_name} == "gentoo" ]]; then
|
||||
NEWSDIR="${repository_path}"/metadata/news
|
||||
ebegin "Updating news items"
|
||||
if [[ -e ${NEWSDIR} ]]; then
|
||||
git -C "${NEWSDIR}" pull -q --ff
|
||||
else
|
||||
git clone -q https://anongit.gentoo.org/git/data/gentoo-news.git "${NEWSDIR}"
|
||||
fi
|
||||
eend $? "Try to remove ${NEWSDIR}"
|
||||
NEWSDIR="${repository_path}"/metadata/news
|
||||
ebegin "Updating news items"
|
||||
if [[ -e ${NEWSDIR} ]]; then
|
||||
git -C "${NEWSDIR}" pull -q --ff
|
||||
else
|
||||
git clone -q https://anongit.gentoo.org/git/data/gentoo-news.git "${NEWSDIR}"
|
||||
fi
|
||||
eend $? "Try to remove ${NEWSDIR}"
|
||||
|
Loading…
Reference in New Issue
Block a user