]> granicus.if.org Git - php/commitdiff
added support for <deps> and <dep> tags
authorTomas V.V.Cox <cox@php.net>
Sun, 16 Dec 2001 16:21:35 +0000 (16:21 +0000)
committerTomas V.V.Cox <cox@php.net>
Sun, 16 Dec 2001 16:21:35 +0000 (16:21 +0000)
pear/PEAR/Common.php

index 663124cae7d9726767fe846d08f7ee565ba6a713..1b1a9261c7c3e8709e67f5992487d49db96bdc4f 100644 (file)
@@ -180,6 +180,14 @@ class PEAR_Common extends PEAR
                     $this->current_release =& $this->pkginfo['changelog'][$this->c_i];
                 }
                 break;
+            case 'deps':
+                $this->pkginfo['release_deps'] = array();
+                break;
+            case 'dep':
+                // dependencies array index
+                $this->d_i = (isset($this->d_i)) ? $this->d_i + 1 : 0;
+                $this->pkginfo['release_deps'][$this->d_i] = $attribs;
+                break;
         }
     }
 
@@ -318,6 +326,11 @@ class PEAR_Common extends PEAR
             case 'sources':
                 $this->lib_sources[] = trim($data);
                 break;
+            case 'dep':
+                if ($data = trim($data)) {
+                    $this->pkginfo['release_deps'][$this->d_i]['name'] = $data;
+                }
+                break;
         }
     }