First set repository_name, then check if it's gentoo

This commit is contained in:
Andreas K. Huettel (dilfridge) 2015-09-05 16:22:14 +02:00
parent be8ca3a7b8
commit 50d8ab3686
5 changed files with 15 additions and 15 deletions

View File

@ -1,12 +1,12 @@
#!/bin/bash
repository_name="${1}"
repository_path="${3}"
[[ ${repository_name} == "gentoo" ]] || exit 0
source /lib/gentoo/functions.sh
repository_name="${1}"
repository_path="${3}"
# Number of jobs for egencache, default is number or processors.
parallel_jobs="$(nproc)"

View File

@ -1,12 +1,12 @@
#!/bin/bash
repository_name="${1}"
repository_path="${3}"
[[ ${repository_name} == "gentoo" ]] || exit 0
source /lib/gentoo/functions.sh
repository_name="${1}"
repository_path="${3}"
DTDDIR="${repository_path}"/metadata/dtd
ebegin "Updating DTDs"
if [[ -e ${DTDDIR} ]]; then

View File

@ -1,12 +1,12 @@
#!/bin/bash
repository_name="${1}"
repository_path="${3}"
[[ ${repository_name} == "gentoo" ]] || exit 0
source /lib/gentoo/functions.sh
repository_name="${1}"
repository_path="${3}"
GLSADIR="${repository_path}"/metadata/glsa
ebegin "Updating GLSAs"
if [[ -e ${GLSADIR} ]]; then

View File

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

View File

@ -1,12 +1,12 @@
#!/bin/bash
repository_name="${1}"
repository_path="${3}"
[[ ${repository_name} == "gentoo" ]] || exit 0
source /lib/gentoo/functions.sh
repository_name="${1}"
repository_path="${3}"
NEWSDIR="${repository_path}"/metadata/news
ebegin "Updating news items"
if [[ -e ${NEWSDIR} ]]; then