diff options
author | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2015-09-23 20:23:50 -0300 |
---|---|---|
committer | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2015-09-23 20:23:50 -0300 |
commit | dfcaa1e1423a59057eb84273b1982d69f31e9be8 (patch) | |
tree | 2657bf9a15aadd177c7f29c12536fce2c702b780 /db-update | |
parent | b1fbfc099cb91a094128ffd86d16b2206a181f65 (diff) |
fix variables
Diffstat (limited to 'db-update')
-rwxr-xr-x | db-update | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -16,14 +16,14 @@ fi repos=() for staging_repo in "${staging_repos[@]##*/}"; do - if in_array "${staging_repo}" "${PKGREPOS[@]}"; then + if in_array "${staging_repo}" "${repositories[@]}"; then repos+=("${staging_repo}") fi done # TODO: this might lock too much (architectures) for repo in "${repos[@]}"; do - for pkgarch in "${ARCHES[@]}"; do + for pkgarch in "${architectures[@]}"; do repo_lock "${repo}" "${pkgarch}" || exit 1 done done @@ -59,7 +59,7 @@ dirs=() for repo in "${repos[@]}"; do msg "Updating [%s]..." "${repo}" any_pkgs=($(getpkgfiles "${staging_directory}/${repo}/"*-any${package_extension_suffixfile} 2>/dev/null)) - for pkgarch in "${ARCHES[@]}"; do + for pkgarch in "${architectures[@]}"; do add_dirs=() add_pkgs=() arch_pkgs=($(getpkgfiles "${staging_directory}/${repo}/"*-"${pkgarch}"${package_extension_suffixfile} 2>/dev/null)) @@ -68,17 +68,17 @@ for repo in "${repos[@]}"; do msg2 "%s (%s)" "${pkgfile}" "${pkgarch}" # any packages might have been moved by the previous run if [ -f "${pkg}" ]; then - mv "${pkg}" "${root_dir}/${PKGPOOL}" + mv "${pkg}" "${root_dir}/${packages_pool}" fi - ln -s "../../../${PKGPOOL}/${pkgfile}" "${root_dir}/$repo/os/${pkgarch}" + ln -s "../../../${packages_pool}/${pkgfile}" "${root_dir}/$repo/os/${pkgarch}" # also move signatures if [ -f "${pkg}.sig" ]; then - mv "${pkg}.sig" "${root_dir}/${PKGPOOL}" + mv "${pkg}.sig" "${root_dir}/${packages_pool}" fi - if [ -f "${root_dir}/${PKGPOOL}/${pkgfile}.sig" ]; then - ln -s "../../../${PKGPOOL}/${pkgfile}.sig" "${root_dir}/$repo/os/${pkgarch}" + if [ -f "${root_dir}/${packages_pool}/${pkgfile}.sig" ]; then + ln -s "../../../${packages_pool}/${pkgfile}.sig" "${root_dir}/$repo/os/${pkgarch}" fi - add_dirs+=("${staging_directory}/abslibre/$(getpkgarch "${root_dir}/$PKGPOOL/$pkgfile")/$repo/$(getpkgbase "${root_dir}/$PKGPOOL/$pkgfile")") + add_dirs+=("${staging_directory}/abslibre/$(getpkgarch "${root_dir}/$packages_pool/$pkgfile")/$repo/$(getpkgbase "${root_dir}/$packages_pool/$pkgfile")") add_pkgs+=("${pkgfile}") done for add_dir in "${add_dirs[@]}"; do @@ -93,7 +93,7 @@ for repo in "${repos[@]}"; do done for repo in "${repos[@]}"; do - for pkgarch in "${ARCHES[@]}"; do + for pkgarch in "${architectures[@]}"; do repo_unlock "${repo}" "${pkgarch}" done done |