index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2020-02-13 15:06:01 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-02-13 15:06:01 +0100 |
commit | 4ff74a25a4504b1862c7ecc9eb9b5ef31434df36 (patch) | |
tree | f9b384bffcc2ce0444ea6039e90bd9f6faf33f01 /bin/put-upstream-packages-into-db | |
parent | 7c700bd3f678409fd05b93694ccfbc73c74f17ec (diff) |
-rwxr-xr-x | bin/put-upstream-packages-into-db | 4 |
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/ |