summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@parabola.nu>2018-10-08 22:30:19 -0400
committerLuke Shumaker <lukeshu@parabola.nu>2018-10-08 22:30:19 -0400
commita662e0c9191c9e3d60d7232f9fd6a9bc363b0c70 (patch)
tree5c06fe4a349ac0b748bf614a23efa1ad57a74e0f
parent10ba3e0f9a167946044baf325862382f25555464 (diff)
db-import-any: Fix comm usage
Currently, when processing [community], db-import-any spits: comm: file 1 is not in sorted order comm: file 2 is not in sorted order IDK what weirdness causes the entries to not be sorted in the .db
-rwxr-xr-xdb-import-any4
1 files changed, 2 insertions, 2 deletions
diff --git a/db-import-any b/db-import-any
index 7827443..699a48b 100755
--- a/db-import-any
+++ b/db-import-any
@@ -49,10 +49,10 @@ main() {
# Look for arch=(any) packages that exist in
# ${BASEARCH} for this repo but is missing from one or
# more of ${ARCHES[@]}.
- db_list_any_pkgfiles "${FTP_BASE}/${repo}/os/${BASEARCH}/${repo}.db" > "${WORKDIR}/base.txt"
+ db_list_any_pkgfiles "${FTP_BASE}/${repo}/os/${BASEARCH}/${repo}.db" | sort -u > "${WORKDIR}/base.txt"
for arch in "${ARCHES[@]}"; do
[[ $arch != "$BASEARCH" ]] || continue
- db_list_any_pkgfiles "${FTP_BASE}/${repo}/os/${arch}/${repo}.db" > "${WORKDIR}/arch.txt"
+ db_list_any_pkgfiles "${FTP_BASE}/${repo}/os/${arch}/${repo}.db" | sort -u > "${WORKDIR}/arch.txt"
comm -23 "${WORKDIR}/base.txt" "${WORKDIR}/arch.txt"
done \
| sort -u \