]> git.pld-linux.org Git - packages/php-pear-PEAR.git/commitdiff
- added from DEVEL
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 19 Sep 2005 20:59:24 +0000 (20:59 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    php-pear-PEAR-rpmpkgname.patch -> 1.1

php-pear-PEAR-rpmpkgname.patch [new file with mode: 0644]

diff --git a/php-pear-PEAR-rpmpkgname.patch b/php-pear-PEAR-rpmpkgname.patch
new file mode 100644 (file)
index 0000000..cd9f03b
--- /dev/null
@@ -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'] = '';
This page took 0.098522 seconds and 4 git commands to generate.