Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/put-upstream-packages-into-db
diff options
context:
space:
mode:
Diffstat (limited to 'bin/put-upstream-packages-into-db')
-rwxr-xr-xbin/put-upstream-packages-into-db4
1 files changed, 1 insertions, 3 deletions
diff --git a/bin/put-upstream-packages-into-db b/bin/put-upstream-packages-into-db
index 68629a0..7f6095a 100755
--- a/bin/put-upstream-packages-into-db
+++ b/bin/put-upstream-packages-into-db
@@ -3,8 +3,6 @@
# shellcheck source=../lib/load-configuration
. "${0%/*}/../lib/load-configuration"
-# TODO: remove hard-coded package suffixes
-
upstream_packages=$(mktemp "${work_dir}/tmp.put-upstream-packages-into-db.XXXXXXXXXX")
trap 'rm "${upstream_packages}"' EXIT
@@ -20,7 +18,7 @@ trap 'rm "${upstream_packages}"' EXIT
/^%FILENAME%$/ {
N
s/.*\n//
- s/\.pkg\.tar\.\(xz\|zst\)$//
+ s/\.pkg\.\('"${package_compression_suffix_regex}"'\)$//
s/-\(\([^-:]\+\):\)\?\([^-:]\+\)-\([^-]\+\)-\([^-]\+\)$/\t\2\t\3\t\4\t\5/
s/\s\s/\t0\t/
s/^/'"${repo}"'\t/