diff options
Diffstat (limited to 'db-import-archlinuxarm-pkg')
-rwxr-xr-x | db-import-archlinuxarm-pkg | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/db-import-archlinuxarm-pkg b/db-import-archlinuxarm-pkg index ef8c810..22fa94a 100755 --- a/db-import-archlinuxarm-pkg +++ b/db-import-archlinuxarm-pkg @@ -43,10 +43,6 @@ get_repo_content() { sort -u } -# Prints blacklisted packages -get_blacklist() { - cut -d ':' -f 1 "${BLACKLIST_FILE}" -} # repo # arch @@ -58,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=() @@ -195,7 +192,7 @@ source "$(dirname "$(readlink -e "$0")")/db-import-archlinuxarm.conf" source "$(librelib messages)" # Check variables presence -for var in DBEXT FILESEXT mirror mirrorpath WORKDIR BLACKLIST_FILE FTP_BASE; do +for var in DBEXT FILESEXT mirror mirrorpath WORKDIR FTP_BASE; do test -z "${!var}" && fatal_error "Empty %s" "${var}" done |