summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@parabola.nu>2018-08-28 18:53:25 -0400
committerLuke Shumaker <lukeshu@parabola.nu>2018-08-31 21:26:07 -0400
commit21e0e24aba37d81374da3773218afa821c6703f9 (patch)
tree0384061f2c281fc3282ac0225356da3ca818b801
parent2f22e3411af3a2f91a4acb3e0ddda503a16883fe (diff)
db-import-pkg: dif: Only move between tags of the same arch
-rwxr-xr-xdb-import-pkg4
1 files changed, 4 insertions, 0 deletions
diff --git a/db-import-pkg b/db-import-pkg
index 3e5f8ea..41cdd32 100755
--- a/db-import-pkg
+++ b/db-import-pkg
@@ -308,8 +308,12 @@ main() {
# from each upstream.
local tag_from tag_to
for tag_from in "${ARCHTAGS[@]}"; do
+ arch_from=${tag_from##*-}
for tag_to in "${ARCHTAGS[@]}"; do
+ arch_to=${tag_to##*-}
[[ $tag_from != $tag_to ]] || continue
+ [[ $arch_from == $arch_to ]] || continue
+
comm -12 \
"${WORKDIR}/old/${tag_from}.txt" \
"${WORKDIR}/new/${tag_to}.txt" \