From: Elan Ruusamäe Date: Thu, 23 Aug 2012 22:29:50 +0000 (+0300) Subject: - adapter for php-common -> php(core) X-Git-Tag: auto/th/rpm-build-tools-4.5-7~27 X-Git-Url: https://git.pld-linux.org/?a=commitdiff_plain;h=6c2643f292c706d09e44e156d98c9ec9995f28d0;p=packages%2Frpm-build-tools.git - adapter for php-common -> php(core) --- diff --git a/adapter.awk b/adapter.awk index cc3b897..a1597d9 100644 --- a/adapter.awk +++ b/adapter.awk @@ -1874,14 +1874,14 @@ function replace_php_virtual_deps(field) { } } - if (pkg ~/^php$/) { - $2 = "webserver(php)"; + if (pkg == "php" || pkg == "php-common") { + $2 = "php(core)"; if ($4 ~ /^[0-9]:/) { $4 = substr($4, 3); } } - if (pkg ~/^php4$/) { + if (pkg == "php4") { $2 = "webserver(php)"; if ($4 ~ /^[0-9]:/) { $4 = substr($4, 3);