diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2017-01-17 20:35:45 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2017-01-17 20:35:45 -0500 |
commit | f63607c450b303b8700e29ad1270b30eadec5888 (patch) | |
tree | a455b78c67fce5de2758b657cb403809fb77621c /db-import-archlinux-pkg | |
parent | 2a2b9637ee3192090c9a9a06a4e453aead8727e4 (diff) |
Switch to use libreblacklist.
Diffstat (limited to 'db-import-archlinux-pkg')
-rwxr-xr-x | db-import-archlinux-pkg | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/db-import-archlinux-pkg b/db-import-archlinux-pkg index 17fa38d..b9389ba 100755 --- a/db-import-archlinux-pkg +++ b/db-import-archlinux-pkg @@ -44,11 +44,6 @@ get_repo_content() { sort -u } -# Prints blacklisted packages -get_blacklist() { - cut -d ':' -f 1 "${BLACKLIST_FILE}" -} - # repo # arch get_repo_file() { @@ -59,7 +54,8 @@ get_repo_file() { init() { # Get the blacklisted packages - blacklist=($(get_blacklist)) + libreblacklist update + blacklist=($(libreblacklist get-pkg)) # Store all the whitelist files whitelists=() @@ -197,7 +193,7 @@ source "$(dirname "$(readlink -e "$0")")/db-import-archlinux.conf" source "$(librelib messages)" # Check variables presence -for var in DBEXT FILESEXT mirror mirrorpath WORKDIR BLACKLIST_FILE FTP_BASE ARCHSRCPOOLS ARCHPKGPOOLS; do +for var in DBEXT FILESEXT mirror mirrorpath WORKDIR FTP_BASE ARCHSRCPOOLS ARCHPKGPOOLS; do test -z "${!var}" && fatal_error "Empty %s" "${var}" done |