diff options
author | Joshua Ismael Haase Hernández <hahj87@gmail.com> | 2011-06-10 16:33:28 -0500 |
---|---|---|
committer | Joshua Ismael Haase Hernández <hahj87@gmail.com> | 2011-06-10 16:34:11 -0500 |
commit | dead95b06c2a547f3cfae6c5acc21859cdd30d97 (patch) | |
tree | 0e239d0c5835855402fee2136a5282a4ba46763a /db-check-nonfree | |
parent | 303dba7c0ab15cd4e726fe3f72ccf8347df84d10 (diff) |
* Use python for identify nonfree in db-check-nonfree
Diffstat (limited to 'db-check-nonfree')
-rwxr-xr-x | db-check-nonfree | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/db-check-nonfree b/db-check-nonfree index 83efb14..d8f34f0 100755 --- a/db-check-nonfree +++ b/db-check-nonfree @@ -23,15 +23,10 @@ for repo in ${ARCHREPOS[@]}; do 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 + cmd_="$(dirname $0)/list_nonfree_in_db.py -k ${BLACKLIST_FILE} \ + -b ${FTP_BASE}/${repo}/os/${pkgarch}/${repo}${DBEXT}" + cleanpkgs=($(${cmd_})) if [ ${#cleanpkgs[@]} -ge 1 ]; then arch_repo_remove "${repo}" "${pkgarch}" ${cleanpkgs[@]} fi |