From 4ff74a25a4504b1862c7ecc9eb9b5ef31434df36 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 13 Feb 2020 15:06:01 +0100 Subject: bin/put-upstream-packages-into-db: remove hard-coded package suffixes --- bin/put-upstream-packages-into-db | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'bin/put-upstream-packages-into-db') 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/ -- cgit v1.2.3-70-g09d2