summaryrefslogtreecommitdiff
path: root/db-import-archlinuxarm-pkg
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2017-01-17 20:35:45 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2017-01-17 20:35:45 -0500
commitf63607c450b303b8700e29ad1270b30eadec5888 (patch)
treea455b78c67fce5de2758b657cb403809fb77621c /db-import-archlinuxarm-pkg
parent2a2b9637ee3192090c9a9a06a4e453aead8727e4 (diff)
Switch to use libreblacklist.
Diffstat (limited to 'db-import-archlinuxarm-pkg')
-rwxr-xr-xdb-import-archlinuxarm-pkg9
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