SOURCES: php-pear-PEAR-rpmpkgname.patch (NEW) - added from DEVEL

glen glen at pld-linux.org
Mon Sep 19 22:59:30 CEST 2005


Author: glen                         Date: Mon Sep 19 20:59:29 2005 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- added from DEVEL

---- Files affected:
SOURCES:
   php-pear-PEAR-rpmpkgname.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/php-pear-PEAR-rpmpkgname.patch
diff -u /dev/null SOURCES/php-pear-PEAR-rpmpkgname.patch:1.1
--- /dev/null	Mon Sep 19 22:59:29 2005
+++ SOURCES/php-pear-PEAR-rpmpkgname.patch	Mon Sep 19 22:59:24 2005
@@ -0,0 +1,23 @@
+--- .//usr/share/pear/PEAR/Command/Package.php	2005-09-18 16:13:23.000000000 +0300
++++ /usr/share/pear/PEAR/Command/Package.php	2005-09-18 16:22:11.000000000 +0300
+@@ -794,15 +794,17 @@
+         if (isset($options['rpm-pkgname'])) {
+             $rpm_pkgname_format = $options['rpm-pkgname'];
+         } else {
+-            if ($pf->getChannel() == 'pear.php.net' || $pf->getChannel() == 'pecl.php.net') {
+-                $alias = 'PEAR';
++			if ($pf->getChannel() == 'pear.php.net') {
++                $alias = 'php-pear';
++			} elseif ($pf->getChannel() == 'pecl.php.net') {
++                $alias = 'php-pecl';
+             } else {
+                 $chan = &$reg->getChannel($pf->getChannel());
+                 $alias = $chan->getAlias();
+                 $alias = strtoupper($alias);
+                 $info['possible_channel'] = $pf->getChannel() . '/';
+             }
+-            $rpm_pkgname_format = $alias . '::%s';
++            $rpm_pkgname_format = $alias . '-%s';
+         }
+ 
+         $info['extra_headers'] = '';
================================================================



More information about the pld-cvs-commit mailing list