[packages/adapter: 591/631] adapter: handle suggests for php name changes

glen glen at pld-linux.org
Mon Sep 12 20:23:58 CEST 2016


commit 81a5e2e8d36a9ba43e13e23876508e57874bf288
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Thu May 22 10:17:21 2014 +0300

    adapter: handle suggests for php name changes

 adapter.awk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/adapter.awk b/adapter.awk
index 525fb0c..003418b 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -721,7 +721,7 @@ preamble == 1 {
 		replace_requires(field);
 	}
 
-	if (field == "requires:" || field ~ /^requires\(/) {
+	if (field == "requires:" || field ~ /^requires\(/ || field == "suggests:") {
 		replace_requires(field);
 	}
 
@@ -1960,7 +1960,7 @@ function replace_php_virtual_deps(field) {
 #		return
 #	}
 
-	if (field == "requires:") {
+	if (field == "requires:" || field == "suggests:") {
 		if (pkg ~ /^php-(bcmath|bz2|calendar|ctype|curl|dba|date|dom|enchant|exif|fileinfo|filter|fpm|ftp|gd|gettext|gmp|hash|iconv|imap|interbase|intl|json|ldap|mbstring|mcrypt|mssql|mysql|mysqli|odbc|openssl|pcntl|pcre|pdo|pdo-dblib|pdo-firebird|pdo-mysql|pdo-odbc|pdo-pgsql|pdo-sqlite|pgsql|phar|posix|pspell|readline|recode|session|shmop|simplexml|snmp|soap|sockets|spl|sqlite|sqlite3|sybase-ct|sysvmsg|sysvsem|sysvshm|tidy|tokenizer|wddx|xml|xmlreader|xmlrpc|xmlwriter|xsl|zip|zlib)/) {
 			sub(/^php-/, "php(", pkg);
 			sub(/$/, ")", pkg);
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/adapter.git/commitdiff/6ca0126d4d0c8c79feb7db10b0a0fade0f3b8885



More information about the pld-cvs-commit mailing list