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:
authorErich Eckner <git@eckner.net>2020-02-13 15:06:01 +0100
committerErich Eckner <git@eckner.net>2020-02-13 15:06:01 +0100
commit4ff74a25a4504b1862c7ecc9eb9b5ef31434df36 (patch)
treef9b384bffcc2ce0444ea6039e90bd9f6faf33f01 /bin/put-upstream-packages-into-db
parent7c700bd3f678409fd05b93694ccfbc73c74f17ec (diff)
bin/put-upstream-packages-into-db: remove hard-coded package suffixes
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/