Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-03-14 15:51:46 +0100
committerErich Eckner <git@eckner.net>2018-03-14 15:51:46 +0100
commit88dbd44bcc25d3a59e721915b887daa39acc0b66 (patch)
tree22692c153ee933c7ed26f493c4d120f94926d8bd /lib
parent09fee973260d9d2c944e6538d46be157aae74236 (diff)
lib/mysql-functions mysql_generate_package_metadata: create dependency of $x-doc packages on $x-$pkgver and install_target_provider $x -> $x-$pkgver, $x-$pkgver-$pkgrel
Diffstat (limited to 'lib')
-rwxr-xr-xlib/mysql-functions17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/mysql-functions b/lib/mysql-functions
index 4e0ce93..b9ae4ab 100755
--- a/lib/mysql-functions
+++ b/lib/mysql-functions
@@ -535,6 +535,15 @@ mysql_generate_package_metadata() {
s|^| (from_base64("|
s|$|")),|
'
+ printf ' (CONCAT(from_base64("%s"),"-",from_base64("%s"),":",from_base64("%s"),"-",from_base64("%s"))),\n' \
+ "${pkgname}" \
+ "${epoch}" \
+ "${pkgver}" \
+ "${pkgrel}"
+ printf ' (CONCAT(from_base64("%s"),"-",from_base64("%s"),":",from_base64("%s"))),\n' \
+ "${pkgname}" \
+ "${epoch}" \
+ "${pkgver}"
printf ' (from_base64("%s"));\n' \
"${pkgname}"
@@ -546,6 +555,14 @@ mysql_generate_package_metadata() {
s|^| (from_base64("|
s|$|")),|
'
+ if printf '%s' "${pkgname}" | \
+ base64 -d | \
+ grep -q -- '-doc$'; then
+ printf ' (CONCAT(from_base64("%s"),"-",from_base64("%s"),":",from_base64("%s"))),\n' \
+ "$(printf '%s' "${pkgname}" | base64 -d | sed 's/-doc$//' | base64 -w0)" \
+ "${epoch}" \
+ "${pkgver}"
+ fi
printf ' ("base");\n'
echo "${checkdepends}" | \