First set repository_name, then check if it's gentoo
This commit is contained in:
parent
be8ca3a7b8
commit
50d8ab3686
@ -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)"
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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 $?
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user