diff options
author | Joshua Ismael Haase Hernandez <hahj87@gmail.com> | 2011-05-18 21:21:59 -0500 |
---|---|---|
committer | Joshua Ismael Haase Hernandez <hahj87@gmail.com> | 2011-05-18 21:21:59 -0500 |
commit | b88a0166be595545c2b2d68451291f8ba6bb08ab (patch) | |
tree | 21024f1fae89269d1326fba2ee4770f0861034cb /db-update | |
parent | e6e9e1a468c15a6ca609d8c6072a7b8c16fb3833 (diff) |
* Separated nonfree check from db-update
* Added db-check-nonfree to repo-update
Diffstat (limited to 'db-update')
-rwxr-xr-x | db-update | 24 |
1 files changed, 0 insertions, 24 deletions
@@ -77,30 +77,6 @@ for repo in ${repos[@]}; do done done -# Repo check nonfree -msg "Check nonfree in repo:" -nonfree=($(cut -d: -f1 ${BLACKLIST_FILE} | sort -u)) -for repo in ${ARCHREPOS[@]}; do - for pkgarch in ${ARCHES[@]}; do - msg2 "$repo $pkgarch" - if [ ! -f "${FTP_BASE}/${repo}/os/${pkgarch}/${repo}${DBEXT}" ]; then - continue - fi - unset dbpkgs - unset cleanpkgs - cleanpkgs=() - dbpkgs=($(bsdtar -xOf "${FTP_BASE}/${repo}/os/${pkgarch}/${repo}${DBEXT}" | awk '/^%NAME%/{getline;print}' | sort -u )) - for pkgname in ${dbpkgs[@]}; do - if in_array ${pkgname} ${nonfree[@]}; then - cleanpkgs[${#cleanpkgs[*]}]=${pkgname} - fi - done - if [ ${#cleanpkgs[@]} -ge 1 ]; then - arch_repo_remove "${repo}" "${pkgarch}" ${cleanpkgs[@]} - fi - done -done - for repo in ${repos[@]}; do for pkgarch in ${ARCHES[@]}; do repo_unlock ${repo} ${pkgarch} |