diff options
author | Luke Shumaker <lukeshu@parabola.nu> | 2018-05-06 15:51:57 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@parabola.nu> | 2018-05-06 15:51:57 -0400 |
commit | 50c33f2fd83ace66a1e0aa8e4e3a6acb8b6d0585 (patch) | |
tree | f79af72c26af451cf5b9d785cb7bf296c3849b39 /db-import-pkg | |
parent | 7dfb49ffce37a72ec24e4496b6b015336c252051 (diff) |
fixup! db-import-pkg: Have symlinks in $WORKDIR/staging-rsync to be valid before copying
Diffstat (limited to 'db-import-pkg')
-rwxr-xr-x | db-import-pkg | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/db-import-pkg b/db-import-pkg index 659276e..8d42bf2 100755 --- a/db-import-pkg +++ b/db-import-pkg @@ -172,7 +172,14 @@ make_repo_dbs() { pushd "${from}" local pkgfiles - pkgfiles=($(sed -e "s|\$|${PKGEXT}|" "$whitelist")) + case "$UPSTREAM" in + packages|community) + pkgfiles=($(sed -e "s|\$|${PKGEXT}|" "$whitelist")) + ;; + archlinux32|archlinuxarm) + pkgfiles=($(cat "$whitelist")) + ;; + esac local UMASK=$(umask) umask 002 repo-add "$db_file" "${pkgfiles[@]}" |