diff options
author | Erich Eckner <git@eckner.net> | 2018-03-14 15:51:46 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-03-14 15:51:46 +0100 |
commit | 88dbd44bcc25d3a59e721915b887daa39acc0b66 (patch) | |
tree | 22692c153ee933c7ed26f493c4d120f94926d8bd /lib/mysql-functions | |
parent | 09fee973260d9d2c944e6538d46be157aae74236 (diff) | |
download | builder-88dbd44bcc25d3a59e721915b887daa39acc0b66.tar.xz |
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/mysql-functions')
-rwxr-xr-x | lib/mysql-functions | 17 |
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}" | \ |