<html>
<head>
<style><!--
  body {background-color:#ffffff;}
  .file {border:1px solid #eeeeee;margin-top:1em;margin-bottom:1em;}
  .pathname {font-family:monospace; float:right;}
  .fileheader {margin-bottom:.5em;}
  .diff {margin:0;}
  .tasklist {padding:4px;border:1px dashed #000000;margin-top:1em;}
  .tasklist ul {margin-top:0;margin-bottom:0;}
  tr.alt {background-color:#eeeeee}
  #added {background-color:#ddffdd;}
  #addedchars {background-color:#99ff99;font-weight:bolder;}
  tr.alt #added {background-color:#ccf7cc;}
  #removed {background-color:#ffdddd;}
  #removedchars {background-color:#ff9999;font-weight:bolder;}
  tr.alt #removed {background-color:#f7cccc;}
  #info {color:#888888;}
  #context {background-color:#eeeeee;}
  td {padding-left:.3em;padding-right:.3em;}
  tr.head {border-bottom-width:1px;border-bottom-style:solid;}
  tr.head td {padding:0;padding-top:.2em;}
  .task {background-color:#ffff00;}
  .comment {padding:4px;border:1px dashed #000000;background-color:#ffffdd}
  .error {color:red;}
  hr {border-width:0px;height:2px;background:black;}
--></style>
</head>
<body>
<table cellspacing="0" cellpadding="0" border="0" rules="cols">
<tr class="head"><td colspan="4">Commit in <b><tt>PEAR_Server</tt></b> on <span id="info">MAIN</span></td></tr>
<tr><td><tt>Server/<a href="#file1">Backend.php</a></tt></td><td align="right" id="added">+2</td><td align="right" id="removed">-2</td><td nowrap="nowrap" align="center"><a href="http://cvs.phpdoc.org/co.php/PEAR_Server/Server/Backend.php?r=1.7">1.7</a> <a href="http://cvs.phpdoc.org/diff.php/PEAR_Server/Server/Backend.php?r1=1.7&r2=1.8">-&gt;</a> <a href="http://cvs.phpdoc.org/co.php/PEAR_Server/Server/Backend.php?r=1.8">1.8</a></td></tr>
<tr class="alt"><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/<a href="#file2">Exception.php</a></tt></td><td align="right" id="added">+2</td><td align="right" id="removed">-2</td><td nowrap="nowrap" align="center"><a href="http://cvs.phpdoc.org/co.php/PEAR_Server/Server/Exception.php?r=1.6">1.6</a> <a href="http://cvs.phpdoc.org/diff.php/PEAR_Server/Server/Exception.php?r1=1.6&r2=1.7">-&gt;</a> <a href="http://cvs.phpdoc.org/co.php/PEAR_Server/Server/Exception.php?r=1.7">1.7</a></td></tr>
<tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/<a href="#file3">Package.php</a></tt></td><td align="right" id="added">+5</td><td align="right" id="removed">-2</td><td nowrap="nowrap" align="center"><a href="http://cvs.phpdoc.org/co.php/PEAR_Server/Server/Package.php?r=1.4">1.4</a> <a href="http://cvs.phpdoc.org/diff.php/PEAR_Server/Server/Package.php?r1=1.4&r2=1.5">-&gt;</a> <a href="http://cvs.phpdoc.org/co.php/PEAR_Server/Server/Package.php?r=1.5">1.5</a></td></tr>
<tr class="alt"><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/<a href="#file4">mysqlinstall.php</a></tt></td><td align="right" id="added">+2</td><td align="right" id="removed">-2</td><td nowrap="nowrap" align="center"><a href="http://cvs.phpdoc.org/co.php/PEAR_Server/Server/mysqlinstall.php?r=1.14">1.14</a> <a href="http://cvs.phpdoc.org/diff.php/PEAR_Server/Server/mysqlinstall.php?r1=1.14&r2=1.15">-&gt;</a> <a href="http://cvs.phpdoc.org/co.php/PEAR_Server/Server/mysqlinstall.php?r=1.15">1.15</a></td></tr>
<tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/<a href="#file5">Backend.php</a></tt></td><td align="right" id="added">+2</td><td align="right" id="removed">-2</td><td nowrap="nowrap" align="center"><a href="http://cvs.phpdoc.org/co.php/PEAR_Server/Server/Backend.php?r=1.7">1.7</a> <a href="http://cvs.phpdoc.org/diff.php/PEAR_Server/Server/Backend.php?r1=1.7&r2=1.8">-&gt;</a> <a href="http://cvs.phpdoc.org/co.php/PEAR_Server/Server/Backend.php?r=1.8">1.8</a></td></tr>
<tr class="alt"><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/<a href="#file6">Exception.php</a></tt></td><td align="right" id="added">+2</td><td align="right" id="removed">-2</td><td nowrap="nowrap" align="center"><a href="http://cvs.phpdoc.org/co.php/PEAR_Server/Server/Exception.php?r=1.6">1.6</a> <a href="http://cvs.phpdoc.org/diff.php/PEAR_Server/Server/Exception.php?r1=1.6&r2=1.7">-&gt;</a> <a href="http://cvs.phpdoc.org/co.php/PEAR_Server/Server/Exception.php?r=1.7">1.7</a></td></tr>
<tr><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/<a href="#file7">Package.php</a></tt></td><td align="right" id="added">+5</td><td align="right" id="removed">-2</td><td nowrap="nowrap" align="center"><a href="http://cvs.phpdoc.org/co.php/PEAR_Server/Server/Package.php?r=1.4">1.4</a> <a href="http://cvs.phpdoc.org/diff.php/PEAR_Server/Server/Package.php?r1=1.4&r2=1.5">-&gt;</a> <a href="http://cvs.phpdoc.org/co.php/PEAR_Server/Server/Package.php?r=1.5">1.5</a></td></tr>
<tr class="alt"><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/<a href="#file8">mysqlinstall.php</a></tt></td><td align="right" id="added">+2</td><td align="right" id="removed">-2</td><td nowrap="nowrap" align="center"><a href="http://cvs.phpdoc.org/co.php/PEAR_Server/Server/mysqlinstall.php?r=1.14">1.14</a> <a href="http://cvs.phpdoc.org/diff.php/PEAR_Server/Server/mysqlinstall.php?r1=1.14&r2=1.15">-&gt;</a> <a href="http://cvs.phpdoc.org/co.php/PEAR_Server/Server/mysqlinstall.php?r=1.15">1.15</a></td></tr>
<tr><td><tt>Server/Backend/<a href="#file9">DBDataObject.php</a></tt></td><td align="right" id="added">+24</td><td align="right" id="removed">-41</td><td nowrap="nowrap" align="center"><a href="http://cvs.phpdoc.org/co.php/PEAR_Server/Server/Backend/DBDataObject.php?r=1.23">1.23</a> <a href="http://cvs.phpdoc.org/diff.php/PEAR_Server/Server/Backend/DBDataObject.php?r1=1.23&r2=1.24">-&gt;</a> <a href="http://cvs.phpdoc.org/co.php/PEAR_Server/Server/Backend/DBDataObject.php?r=1.24">1.24</a></td></tr>
<tr class="alt"><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/<a href="#file10">DBDataObject.php</a></tt></td><td align="right" id="added">+24</td><td align="right" id="removed">-41</td><td nowrap="nowrap" align="center"><a href="http://cvs.phpdoc.org/co.php/PEAR_Server/Server/Backend/DBDataObject.php?r=1.23">1.23</a> <a href="http://cvs.phpdoc.org/diff.php/PEAR_Server/Server/Backend/DBDataObject.php?r1=1.23&r2=1.24">-&gt;</a> <a href="http://cvs.phpdoc.org/co.php/PEAR_Server/Server/Backend/DBDataObject.php?r=1.24">1.24</a></td></tr>
<tr><td><tt>Server/Frontend/<a href="#file11">HTMLQuickForm.php</a></tt></td><td align="right" id="added">+10</td><td align="right" id="removed">-2</td><td nowrap="nowrap" align="center"><a href="http://cvs.phpdoc.org/co.php/PEAR_Server/Server/Frontend/HTMLQuickForm.php?r=1.7">1.7</a> <a href="http://cvs.phpdoc.org/diff.php/PEAR_Server/Server/Frontend/HTMLQuickForm.php?r1=1.7&r2=1.8">-&gt;</a> <a href="http://cvs.phpdoc.org/co.php/PEAR_Server/Server/Frontend/HTMLQuickForm.php?r=1.8">1.8</a></td></tr>
<tr class="alt"><td><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/<a href="#file12">HTMLQuickForm.php</a></tt></td><td align="right" id="added">+10</td><td align="right" id="removed">-2</td><td nowrap="nowrap" align="center"><a href="http://cvs.phpdoc.org/co.php/PEAR_Server/Server/Frontend/HTMLQuickForm.php?r=1.7">1.7</a> <a href="http://cvs.phpdoc.org/diff.php/PEAR_Server/Server/Frontend/HTMLQuickForm.php?r1=1.7&r2=1.8">-&gt;</a> <a href="http://cvs.phpdoc.org/co.php/PEAR_Server/Server/Frontend/HTMLQuickForm.php?r=1.8">1.8</a></td></tr>
<tr><td><tt>data/DBDataObject/<a href="#file13">pearserver.ini</a></tt></td><td align="right" id="added">+2</td><td></td><td nowrap="nowrap" align="center"><a href="http://cvs.phpdoc.org/co.php/PEAR_Server/data/DBDataObject/pearserver.ini?r=1.4">1.4</a> <a href="http://cvs.phpdoc.org/diff.php/PEAR_Server/data/DBDataObject/pearserver.ini?r1=1.4&r2=1.5">-&gt;</a> <a href="http://cvs.phpdoc.org/co.php/PEAR_Server/data/DBDataObject/pearserver.ini?r=1.5">1.5</a></td></tr>
<tr><td></td><td align="right" id="added">+92</td><td align="right" id="removed">-102</td><td></td></tr>
</table>
<small id="info">13 modified files</small><br />
<pre class="comment">
REST generation/deletion is fully tested
implement and test deletePackage()
</pre>
<hr /><a name="file1" /><div class="file">
<span class="pathname"><a href="http://cvs.phpdoc.org/cvs.php/PEAR_Server">PEAR_Server</a>/<a href="http://cvs.phpdoc.org/cvs.php/PEAR_Server/Server">Server</a><br /></span>
<div class="fileheader"><big><b>Backend.php</b></big> <small id="info"><a href="http://cvs.phpdoc.org/co.php/PEAR_Server/Server/Backend.php?r=1.7">1.7</a> <a href="http://cvs.phpdoc.org/diff.php/PEAR_Server/Server/Backend.php?r1=1.7&r2=1.8">-&gt;</a> <a href="http://cvs.phpdoc.org/co.php/PEAR_Server/Server/Backend.php?r=1.8">1.8</a></small></div>
<pre class="diff"><small id="info">diff -u -r1.7 -r1.8
--- Backend.php        21 Apr 2005 03:39:50 -0000        1.7
+++ Backend.php        22 Apr 2005 02:31:14 -0000        1.8
@@ -30,7 +30,7 @@
</small></pre><pre class="diff" id="context"> 
     abstract public function savePackageREST($package);
 
</pre><pre class="diff" id="removed">-    abstract public function deletePackageREST($package);
</pre><pre class="diff" id="added">+    abstract public function deletePackageREST($package<span id="addedchars">,&nbsp;$category</span>);
</pre><pre class="diff" id="context"> 
     abstract public function saveCategoryREST($category);
 
</pre><pre class="diff"><small id="info">@@ -95,7 +95,7 @@
</small></pre><pre class="diff" id="context">      */
     abstract public function addPackage($package);
 
</pre><pre class="diff" id="removed">-    abstract public function deletePackage($packagename<span id="removedchars">,&nbsp;$category</span>);
</pre><pre class="diff" id="added">+    abstract public function deletePackage($packagename);
</pre><pre class="diff" id="context"> 
     /**
      * @param Chiara_PEAR_Server_Package
</pre></div>
<hr /><a name="file2" /><div class="file">
<span class="pathname"><a href="http://cvs.phpdoc.org/cvs.php/PEAR_Server">PEAR_Server</a>/<a href="http://cvs.phpdoc.org/cvs.php/PEAR_Server/Server">Server</a><br /></span>
<div class="fileheader"><big><b>Exception.php</b></big> <small id="info"><a href="http://cvs.phpdoc.org/co.php/PEAR_Server/Server/Exception.php?r=1.6">1.6</a> <a href="http://cvs.phpdoc.org/diff.php/PEAR_Server/Server/Exception.php?r1=1.6&r2=1.7">-&gt;</a> <a href="http://cvs.phpdoc.org/co.php/PEAR_Server/Server/Exception.php?r=1.7">1.7</a></small></div>
<pre class="diff"><small id="info">diff -u -r1.6 -r1.7
--- Exception.php        21 Apr 2005 03:39:50 -0000        1.6
+++ Exception.php        22 Apr 2005 02:31:14 -0000        1.7
@@ -248,9 +248,9 @@
</small></pre><pre class="diff" id="context"> 
 class Chiara_PEAR_Server_ExceptionCannotDeleteHasReleases extends Chiara_PEAR_Server_Exception
 {
</pre><pre class="diff" id="removed">-    protected $_message = 'Package %p% in channel %c cannot be deleted, delete all releases first';
</pre><pre class="diff" id="added">+    protected $_message = 'Package %p% in channel %c<span id="addedchars">%</span> cannot be deleted, delete all releases first';
</pre><pre class="diff" id="context"> 
</pre><pre class="diff" id="removed">-    public function __construct($package, $channel)
</pre><pre class="diff" id="added">+    public function __construct($package, $channel<span id="addedchars">,&nbsp;$msg&nbsp;=&nbsp;false</span>)
</pre><pre class="diff" id="context">     {
         $this-&gt;_data = array('p' =&gt; $package, 'c' =&gt; $channel);
         parent::__construct($msg ? $msg : $this-&gt;_message);
</pre></div>
<hr /><a name="file3" /><div class="file">
<span class="pathname"><a href="http://cvs.phpdoc.org/cvs.php/PEAR_Server">PEAR_Server</a>/<a href="http://cvs.phpdoc.org/cvs.php/PEAR_Server/Server">Server</a><br /></span>
<div class="fileheader"><big><b>Package.php</b></big> <small id="info"><a href="http://cvs.phpdoc.org/co.php/PEAR_Server/Server/Package.php?r=1.4">1.4</a> <a href="http://cvs.phpdoc.org/diff.php/PEAR_Server/Server/Package.php?r1=1.4&r2=1.5">-&gt;</a> <a href="http://cvs.phpdoc.org/co.php/PEAR_Server/Server/Package.php?r=1.5">1.5</a></small></div>
<pre class="diff"><small id="info">diff -u -r1.4 -r1.5
--- Package.php        17 Apr 2005 21:14:38 -0000        1.4
+++ Package.php        22 Apr 2005 02:31:14 -0000        1.5
@@ -68,11 +68,14 @@
</small></pre><pre class="diff" id="context"> 
     public function __set($var, $value)
     {
</pre><pre class="diff" id="added">+        if (is_string($value)) {
+            $value = trim($value);
+        }
</pre><pre class="diff" id="context">         if ($var == 'maintainer') {
</pre><pre class="diff" id="removed">-            $this-&gt;<span id="removedchars">$this-&gt;</span>properties['maintainers'][$value[0]] = $value;
</pre><pre class="diff" id="added">+            $this-&gt;properties['maintainers'][$value[0]] = $value;
</pre><pre class="diff" id="context">         }
         if ($var == 'maintainers') {
</pre><pre class="diff" id="removed">-            $this-&gt;<span id="removedchars">$this-&gt;</span>properties['maintainers'] = $value;
</pre><pre class="diff" id="added">+            $this-&gt;properties['maintainers'] = $value;
</pre><pre class="diff" id="context">         }
         if (isset($this-&gt;properties[$var])) {
             if ($value === null) {
</pre></div>
<hr /><a name="file4" /><div class="file">
<span class="pathname"><a href="http://cvs.phpdoc.org/cvs.php/PEAR_Server">PEAR_Server</a>/<a href="http://cvs.phpdoc.org/cvs.php/PEAR_Server/Server">Server</a><br /></span>
<div class="fileheader"><big><b>mysqlinstall.php</b></big> <small id="info"><a href="http://cvs.phpdoc.org/co.php/PEAR_Server/Server/mysqlinstall.php?r=1.14">1.14</a> <a href="http://cvs.phpdoc.org/diff.php/PEAR_Server/Server/mysqlinstall.php?r1=1.14&r2=1.15">-&gt;</a> <a href="http://cvs.phpdoc.org/co.php/PEAR_Server/Server/mysqlinstall.php?r=1.15">1.15</a></small></div>
<pre class="diff"><small id="info">diff -u -r1.14 -r1.15
--- mysqlinstall.php        20 Apr 2005 04:06:18 -0000        1.14
+++ mysqlinstall.php        22 Apr 2005 02:31:14 -0000        1.15
@@ -540,7 +540,7 @@
</small></pre><pre class="diff" id="context">             $type . '://' . $this-&gt;user . ':' . $this-&gt;password . '@' . $this-&gt;dbhost .
             '/' . $this-&gt;db . '\')';
         $contents = '&lt;?php
</pre><pre class="diff" id="removed">-<span id="removedchars">'&nbsp;.&nbsp;$extraconf&nbsp;.&nbsp;'</span>require_once \'Chiara/PEAR/Server.php\';
</pre><pre class="diff" id="added">+require_once \'Chiara/PEAR/Server.php\';
</pre><pre class="diff" id="context"> require_once \'Chiara/PEAR/Server/Backend/DBDataObject.php\';
 require_once \'Chiara/PEAR/Server/Frontend/Xmlrpc5.php\';
 $backend = new Chiara_PEAR_Server_Backend_DBDataObject(\'' . $this-&gt;channel . '\', false, '
</pre><pre class="diff"><small id="info">@@ -580,7 +580,7 @@
</small></pre><pre class="diff" id="context"> require_once \'Chiara/PEAR/Server/Backend/DBDataObject.php\';
 require_once \'Chiara/PEAR/Server/Frontend/HTMLQuickForm.php\';
 $backend = new Chiara_PEAR_Server_Backend_DBDataObject(\'' . $this-&gt;channel . '\',
</pre><pre class="diff" id="removed">-    \'' . $answers['docroot'] . DIRECTORY_SEPARATOR . 'Chiara_PEAR_Server_REST<span id="removedchars">'&nbsp;.&nbsp;'</span>\', ' . $config . ');
</pre><pre class="diff" id="added">+    \'' . $answers['docroot'] . DIRECTORY_SEPARATOR . 'Chiara_PEAR_Server_REST\', ' . $config . ');
</pre><pre class="diff" id="context"> $frontend = new Chiara_PEAR_Server_Frontend_HTMLQuickForm(\'' . $this-&gt;channel .
         '\', new HTML_QuickForm(\'channel\'),
         \'' . $answers['frontendphp'] . '\', \'' . $answers['uploadpath'] . '\');
</pre></div>
<hr /><a name="file5" /><div class="file">
<span class="pathname"><a href="http://cvs.phpdoc.org/cvs.php/PEAR_Server">PEAR_Server</a>/<a href="http://cvs.phpdoc.org/cvs.php/PEAR_Server/Server">Server</a><br /></span>
<div class="fileheader"><big><b>Backend.php</b></big> <small id="info"><a href="http://cvs.phpdoc.org/co.php/PEAR_Server/Server/Backend.php?r=1.7">1.7</a> <a href="http://cvs.phpdoc.org/diff.php/PEAR_Server/Server/Backend.php?r1=1.7&r2=1.8">-&gt;</a> <a href="http://cvs.phpdoc.org/co.php/PEAR_Server/Server/Backend.php?r=1.8">1.8</a></small></div>
<pre class="diff"><small id="info">diff -u -r1.7 -r1.8
--- Backend.php        21 Apr 2005 03:39:50 -0000        1.7
+++ Backend.php        22 Apr 2005 02:31:14 -0000        1.8
@@ -30,7 +30,7 @@
</small></pre><pre class="diff" id="context"> 
     abstract public function savePackageREST($package);
 
</pre><pre class="diff" id="removed">-    abstract public function deletePackageREST($package);
</pre><pre class="diff" id="added">+    abstract public function deletePackageREST($package<span id="addedchars">,&nbsp;$category</span>);
</pre><pre class="diff" id="context"> 
     abstract public function saveCategoryREST($category);
 
</pre><pre class="diff"><small id="info">@@ -95,7 +95,7 @@
</small></pre><pre class="diff" id="context">      */
     abstract public function addPackage($package);
 
</pre><pre class="diff" id="removed">-    abstract public function deletePackage($packagename<span id="removedchars">,&nbsp;$category</span>);
</pre><pre class="diff" id="added">+    abstract public function deletePackage($packagename);
</pre><pre class="diff" id="context"> 
     /**
      * @param Chiara_PEAR_Server_Package
</pre></div>
<hr /><a name="file6" /><div class="file">
<span class="pathname"><a href="http://cvs.phpdoc.org/cvs.php/PEAR_Server">PEAR_Server</a>/<a href="http://cvs.phpdoc.org/cvs.php/PEAR_Server/Server">Server</a><br /></span>
<div class="fileheader"><big><b>Exception.php</b></big> <small id="info"><a href="http://cvs.phpdoc.org/co.php/PEAR_Server/Server/Exception.php?r=1.6">1.6</a> <a href="http://cvs.phpdoc.org/diff.php/PEAR_Server/Server/Exception.php?r1=1.6&r2=1.7">-&gt;</a> <a href="http://cvs.phpdoc.org/co.php/PEAR_Server/Server/Exception.php?r=1.7">1.7</a></small></div>
<pre class="diff"><small id="info">diff -u -r1.6 -r1.7
--- Exception.php        21 Apr 2005 03:39:50 -0000        1.6
+++ Exception.php        22 Apr 2005 02:31:14 -0000        1.7
@@ -248,9 +248,9 @@
</small></pre><pre class="diff" id="context"> 
 class Chiara_PEAR_Server_ExceptionCannotDeleteHasReleases extends Chiara_PEAR_Server_Exception
 {
</pre><pre class="diff" id="removed">-    protected $_message = 'Package %p% in channel %c cannot be deleted, delete all releases first';
</pre><pre class="diff" id="added">+    protected $_message = 'Package %p% in channel %c<span id="addedchars">%</span> cannot be deleted, delete all releases first';
</pre><pre class="diff" id="context"> 
</pre><pre class="diff" id="removed">-    public function __construct($package, $channel)
</pre><pre class="diff" id="added">+    public function __construct($package, $channel<span id="addedchars">,&nbsp;$msg&nbsp;=&nbsp;false</span>)
</pre><pre class="diff" id="context">     {
         $this-&gt;_data = array('p' =&gt; $package, 'c' =&gt; $channel);
         parent::__construct($msg ? $msg : $this-&gt;_message);
</pre></div>
<hr /><a name="file7" /><div class="file">
<span class="pathname"><a href="http://cvs.phpdoc.org/cvs.php/PEAR_Server">PEAR_Server</a>/<a href="http://cvs.phpdoc.org/cvs.php/PEAR_Server/Server">Server</a><br /></span>
<div class="fileheader"><big><b>Package.php</b></big> <small id="info"><a href="http://cvs.phpdoc.org/co.php/PEAR_Server/Server/Package.php?r=1.4">1.4</a> <a href="http://cvs.phpdoc.org/diff.php/PEAR_Server/Server/Package.php?r1=1.4&r2=1.5">-&gt;</a> <a href="http://cvs.phpdoc.org/co.php/PEAR_Server/Server/Package.php?r=1.5">1.5</a></small></div>
<pre class="diff"><small id="info">diff -u -r1.4 -r1.5
--- Package.php        17 Apr 2005 21:14:38 -0000        1.4
+++ Package.php        22 Apr 2005 02:31:14 -0000        1.5
@@ -68,11 +68,14 @@
</small></pre><pre class="diff" id="context"> 
     public function __set($var, $value)
     {
</pre><pre class="diff" id="added">+        if (is_string($value)) {
+            $value = trim($value);
+        }
</pre><pre class="diff" id="context">         if ($var == 'maintainer') {
</pre><pre class="diff" id="removed">-            $this-&gt;<span id="removedchars">$this-&gt;</span>properties['maintainers'][$value[0]] = $value;
</pre><pre class="diff" id="added">+            $this-&gt;properties['maintainers'][$value[0]] = $value;
</pre><pre class="diff" id="context">         }
         if ($var == 'maintainers') {
</pre><pre class="diff" id="removed">-            $this-&gt;<span id="removedchars">$this-&gt;</span>properties['maintainers'] = $value;
</pre><pre class="diff" id="added">+            $this-&gt;properties['maintainers'] = $value;
</pre><pre class="diff" id="context">         }
         if (isset($this-&gt;properties[$var])) {
             if ($value === null) {
</pre></div>
<hr /><a name="file8" /><div class="file">
<span class="pathname"><a href="http://cvs.phpdoc.org/cvs.php/PEAR_Server">PEAR_Server</a>/<a href="http://cvs.phpdoc.org/cvs.php/PEAR_Server/Server">Server</a><br /></span>
<div class="fileheader"><big><b>mysqlinstall.php</b></big> <small id="info"><a href="http://cvs.phpdoc.org/co.php/PEAR_Server/Server/mysqlinstall.php?r=1.14">1.14</a> <a href="http://cvs.phpdoc.org/diff.php/PEAR_Server/Server/mysqlinstall.php?r1=1.14&r2=1.15">-&gt;</a> <a href="http://cvs.phpdoc.org/co.php/PEAR_Server/Server/mysqlinstall.php?r=1.15">1.15</a></small></div>
<pre class="diff"><small id="info">diff -u -r1.14 -r1.15
--- mysqlinstall.php        20 Apr 2005 04:06:18 -0000        1.14
+++ mysqlinstall.php        22 Apr 2005 02:31:14 -0000        1.15
@@ -540,7 +540,7 @@
</small></pre><pre class="diff" id="context">             $type . '://' . $this-&gt;user . ':' . $this-&gt;password . '@' . $this-&gt;dbhost .
             '/' . $this-&gt;db . '\')';
         $contents = '&lt;?php
</pre><pre class="diff" id="removed">-<span id="removedchars">'&nbsp;.&nbsp;$extraconf&nbsp;.&nbsp;'</span>require_once \'Chiara/PEAR/Server.php\';
</pre><pre class="diff" id="added">+require_once \'Chiara/PEAR/Server.php\';
</pre><pre class="diff" id="context"> require_once \'Chiara/PEAR/Server/Backend/DBDataObject.php\';
 require_once \'Chiara/PEAR/Server/Frontend/Xmlrpc5.php\';
 $backend = new Chiara_PEAR_Server_Backend_DBDataObject(\'' . $this-&gt;channel . '\', false, '
</pre><pre class="diff"><small id="info">@@ -580,7 +580,7 @@
</small></pre><pre class="diff" id="context"> require_once \'Chiara/PEAR/Server/Backend/DBDataObject.php\';
 require_once \'Chiara/PEAR/Server/Frontend/HTMLQuickForm.php\';
 $backend = new Chiara_PEAR_Server_Backend_DBDataObject(\'' . $this-&gt;channel . '\',
</pre><pre class="diff" id="removed">-    \'' . $answers['docroot'] . DIRECTORY_SEPARATOR . 'Chiara_PEAR_Server_REST<span id="removedchars">'&nbsp;.&nbsp;'</span>\', ' . $config . ');
</pre><pre class="diff" id="added">+    \'' . $answers['docroot'] . DIRECTORY_SEPARATOR . 'Chiara_PEAR_Server_REST\', ' . $config . ');
</pre><pre class="diff" id="context"> $frontend = new Chiara_PEAR_Server_Frontend_HTMLQuickForm(\'' . $this-&gt;channel .
         '\', new HTML_QuickForm(\'channel\'),
         \'' . $answers['frontendphp'] . '\', \'' . $answers['uploadpath'] . '\');
</pre></div>
<hr /><a name="file9" /><div class="file">
<span class="pathname"><a href="http://cvs.phpdoc.org/cvs.php/PEAR_Server">PEAR_Server</a>/<a href="http://cvs.phpdoc.org/cvs.php/PEAR_Server/Server">Server</a>/<a href="http://cvs.phpdoc.org/cvs.php/PEAR_Server/Server/Backend">Backend</a><br /></span>
<div class="fileheader"><big><b>DBDataObject.php</b></big> <small id="info"><a href="http://cvs.phpdoc.org/co.php/PEAR_Server/Server/Backend/DBDataObject.php?r=1.23">1.23</a> <a href="http://cvs.phpdoc.org/diff.php/PEAR_Server/Server/Backend/DBDataObject.php?r1=1.23&r2=1.24">-&gt;</a> <a href="http://cvs.phpdoc.org/co.php/PEAR_Server/Server/Backend/DBDataObject.php?r=1.24">1.24</a></small></div>
<pre class="diff"><small id="info">diff -u -r1.23 -r1.24
--- DBDataObject.php        21 Apr 2005 03:50:18 -0000        1.23
+++ DBDataObject.php        22 Apr 2005 02:31:15 -0000        1.24
@@ -176,7 +176,7 @@
</small></pre><pre class="diff" id="context">         if ($ret) {
             $this-&gt;savePackageREST($releasedata-&gt;package);
             $this-&gt;saveReleaseREST($releasedata-&gt;package, $releasedata-&gt;version);
</pre><pre class="diff" id="removed">-            $this-&gt;saveAllReleasesREST();
</pre><pre class="diff" id="added">+            $this-&gt;saveAllReleasesREST(<span id="addedchars">$releasedata-&gt;package</span>);
</pre><pre class="diff" id="context">         }
         return $ret;
     }
</pre><pre class="diff"><small id="info">@@ -191,12 +191,12 @@
</small></pre><pre class="diff" id="context">             if (isset($channelinfo['host'])) {
                 $extra = $channelinfo['path'] . '/Chiara_PEAR_Server_REST/';
             } else {
</pre><pre class="diff" id="removed">-                $extra = '/Chiara_PEAR_Server_REST';
</pre><pre class="diff" id="added">+                $extra = '/Chiara_PEAR_Server_REST<span id="addedchars">/</span>';
</pre><pre class="diff" id="context">             }
             $releasedata = DB_DataObject::factory('releases');
             $releasedata-&gt;channel = $this-&gt;_channel;
             $releasedata-&gt;package = $package;
</pre><pre class="diff" id="removed">-            $releasedata-&gt;orderby('releasedate');
</pre><pre class="diff" id="added">+            $releasedata-&gt;orderby('releasedate<span id="addedchars">&nbsp;DESC</span>');
</pre><pre class="diff" id="context">             if (!$releasedata-&gt;find(false)) {
                 return;
             }
</pre><pre class="diff"><small id="info">@@ -232,7 +232,7 @@
</small></pre><pre class="diff" id="context">                 DIRECTORY_SEPARATOR . 'allreleases.xml', 0666);
 
             file_put_contents($rdir . DIRECTORY_SEPARATOR . $package .
</pre><pre class="diff" id="removed">-                DIRECTORY_SEPARATOR . 'latest.txt', $<span id="removedchars">version</span>);
</pre><pre class="diff" id="added">+                DIRECTORY_SEPARATOR . 'latest.txt', $<span id="addedchars">latest</span>);
</pre><pre class="diff" id="context">             @chmod($rdir . DIRECTORY_SEPARATOR . $package .
                 DIRECTORY_SEPARATOR . 'latest.txt', 0666);
             if (isset($stable)) {
</pre><pre class="diff"><small id="info">@@ -262,12 +262,6 @@
</small></pre><pre class="diff" id="context">         $channel-&gt;channel = $this-&gt;_channel;
         $channel-&gt;find(true);
         if ($channel-&gt;rest_support) {
</pre><pre class="diff" id="removed">-            $channelinfo = parse_url($this-&gt;_channel);
-            if (isset($channelinfo['host'])) {
-                $extra = $channelinfo['path'] . '/Chiara_PEAR_Server_REST/';
-            } else {
-                $extra = '/Chiara_PEAR_Server_REST';
-            }
</pre><pre class="diff" id="context">             $rdir = $this-&gt;_restdir . DIRECTORY_SEPARATOR . 'r';
             if (!file_exists($rdir . DIRECTORY_SEPARATOR . $package)) {
                 return;
</pre><pre class="diff"><small id="info">@@ -290,7 +284,7 @@
</small></pre><pre class="diff" id="context">             if (isset($channelinfo['host'])) {
                 $extra = $channelinfo['path'] . '/Chiara_PEAR_Server_REST/';
             } else {
</pre><pre class="diff" id="removed">-                $extra = '/Chiara_PEAR_Server_REST';
</pre><pre class="diff" id="added">+                $extra = '/Chiara_PEAR_Server_REST<span id="addedchars">/</span>';
</pre><pre class="diff" id="context">             }
             $releasedata = DB_DataObject::factory('releases');
             $releasedata-&gt;channel = $this-&gt;_channel;
</pre><pre class="diff"><small id="info">@@ -309,7 +303,7 @@
</small></pre><pre class="diff" id="context"> 
             $info = '&lt;?xml version="1.0"?&gt;
 &lt;r&gt;
</pre><pre class="diff" id="removed">- &lt;p xlink:href="' . $extra . 'p/' . urlencode($release['package']) . '"&gt;' . $release['package'] . '&lt;/<span id="removedchars">n</span>&gt;
</pre><pre class="diff" id="added">+ &lt;p xlink:href="' . $extra . 'p/' . urlencode($release['package']) . '"&gt;' . $release['package'] . '&lt;/<span id="addedchars">p</span>&gt;
</pre><pre class="diff" id="context">  &lt;c&gt;' . $release['channel'] . '&lt;/c&gt;
  &lt;v&gt;' . $version . '&lt;/v&gt;
  &lt;s&gt;' . $release['state'] . '&lt;/s&gt;
</pre><pre class="diff"><small id="info">@@ -455,7 +449,7 @@
</small></pre><pre class="diff" id="context">                     'alias' =&gt; 'Default',
                 );
             }
</pre><pre class="diff" id="removed">-            throw new Chiara_PEAR_Server_ExceptionCategoryDoesntExist($<span id="removedchars">id</span>, $channel);
</pre><pre class="diff" id="added">+            throw new Chiara_PEAR_Server_ExceptionCategoryDoesntExist($<span id="addedchars">category</span>, $channel);
</pre><pre class="diff" id="context">         }
     }
 
</pre><pre class="diff"><small id="info">@@ -499,8 +493,6 @@
</small></pre><pre class="diff" id="context">         }
         $category = DB_DataObject::factory('categories');
         $category-&gt;channel = $this-&gt;_channel;
</pre><pre class="diff" id="removed">-        $save = clone $category;
-        $category = $save;
</pre><pre class="diff" id="context">         $category-&gt;name = $cat-&gt;name;
         if ($category-&gt;find()) {
             throw new Chiara_PEAR_Server_ExceptionCategoryExists($cat-&gt;name, $this-&gt;_channel);
</pre><pre class="diff"><small id="info">@@ -520,20 +512,13 @@
</small></pre><pre class="diff" id="context">         $channel-&gt;channel = $this-&gt;_channel;
         $channel-&gt;find(true);
         if ($channel-&gt;rest_support) {
</pre><pre class="diff" id="removed">-            $channelinfo = parse_url($this-&gt;_channel);
-            if (isset($channelinfo['host'])) {
-                $extra = $channelinfo['path'] . '/Chiara_PEAR_Server_REST/';
-            } else {
-                $extra = '/Chiara_PEAR_Server_REST';
-            }
</pre><pre class="diff" id="context">             $cdir = $this-&gt;_restdir . DIRECTORY_SEPARATOR . 'c';
</pre><pre class="diff" id="removed">-            $category = $this-&gt;categoryInfo($category);
-            if (!file_exists($cdir . DIRECTORY_SEPARATOR . urlencode($category['name']))) {
</pre><pre class="diff" id="added">+            if (!file_exists($cdir . DIRECTORY_SEPARATOR . urlencode($category))) {
</pre><pre class="diff" id="context">                 return;
             }
             // remove all category info
             System::rm(array('-r', $this-&gt;_restdir . DIRECTORY_SEPARATOR . 'c'
</pre><pre class="diff" id="removed">-                . DIRECTORY_SEPARATOR . urlencode($category<span id="removedchars">['name']</span>)));
</pre><pre class="diff" id="added">+                . DIRECTORY_SEPARATOR . urlencode($category)));
</pre><pre class="diff" id="context">         }
     }
 
</pre><pre class="diff"><small id="info">@@ -547,7 +532,7 @@
</small></pre><pre class="diff" id="context">             if (isset($channelinfo['host'])) {
                 $extra = $channelinfo['path'] . '/Chiara_PEAR_Server_REST/';
             } else {
</pre><pre class="diff" id="removed">-                $extra = '/Chiara_PEAR_Server_REST';
</pre><pre class="diff" id="added">+                $extra = '/Chiara_PEAR_Server_REST<span id="addedchars">/</span>';
</pre><pre class="diff" id="context">             }
             $cdir = $this-&gt;_restdir . DIRECTORY_SEPARATOR . 'c';
             $category = $this-&gt;categoryInfo($category);
</pre><pre class="diff"><small id="info">@@ -589,13 +574,6 @@
</small></pre><pre class="diff" id="context">         $channel-&gt;channel = $this-&gt;_channel;
         $channel-&gt;find(true);
         if ($channel-&gt;rest_support) {
</pre><pre class="diff" id="removed">-            $channelinfo = parse_url($this-&gt;_channel);
-            if (isset($channelinfo['host'])) {
-                $extra = $channelinfo['path'] . '/Chiara_PEAR_Server_REST/';
-            } else {
-                $extra = '/Chiara_PEAR_Server_REST';
-            }
-
</pre><pre class="diff" id="context">             // remove all package and release info for the package
             System::rm(array('-r', $this-&gt;_restdir . DIRECTORY_SEPARATOR . 'p'
                 . DIRECTORY_SEPARATOR . $package));
</pre><pre class="diff"><small id="info">@@ -616,7 +594,7 @@
</small></pre><pre class="diff" id="context">             if (isset($channelinfo['host'])) {
                 $extra = $channelinfo['path'] . '/Chiara_PEAR_Server_REST/';
             } else {
</pre><pre class="diff" id="removed">-                $extra = '/Chiara_PEAR_Server_REST';
</pre><pre class="diff" id="added">+                $extra = '/Chiara_PEAR_Server_REST<span id="addedchars">/</span>';
</pre><pre class="diff" id="context">             }
             $packages = DB_DataObject::factory('packages');
             $packages-&gt;channel = $this-&gt;_channel;
</pre><pre class="diff"><small id="info">@@ -641,12 +619,12 @@
</small></pre><pre class="diff" id="context">             }
             if ($package['deprecated_package']) {
                 if ($package['deprecated_channel'] == $this-&gt;_channel) {
</pre><pre class="diff" id="removed">-                    $deprecated = '&lt;dc&gt;' . $package['deprecated_channel'] . '&lt;/dc
</pre><pre class="diff" id="added">+                    $deprecated = '&lt;dc&gt;' . $package['deprecated_channel'] . '&lt;/dc<span id="addedchars">&gt;</span>
</pre><pre class="diff" id="context">  &lt;dp href="' . $extra . 'p/' . $package['deprecated_package'] . '"&gt; ' .
                     $package['deprecated_package'] . '&lt;/dp&gt;
 ';
                 } else {
</pre><pre class="diff" id="removed">-                    $deprecated = '&lt;dc&gt;' . $package['deprecated_channel'] . '&lt;/dc
</pre><pre class="diff" id="added">+                    $deprecated = '&lt;dc&gt;' . $package['deprecated_channel'] . '&lt;/dc<span id="addedchars">&gt;</span>
</pre><pre class="diff" id="context">  &lt;dp&gt; ' . $package['deprecated_package'] . '&lt;/dp&gt;
 ';
                 }
</pre><pre class="diff"><small id="info">@@ -748,19 +726,24 @@
</small></pre><pre class="diff" id="context">         if (!$packages-&gt;find(true)) {
             throw new Chiara_PEAR_Server_ExceptionPackageDoesntExist($package, $this-&gt;_channel);
         }
</pre><pre class="diff" id="removed">-        $categories = DB_DataObject::factory('categories');
-        $categories-&gt;channel = $this-&gt;_channel;
-        $categories-&gt;id = $packages-&gt;category_id;
-        $categories-&gt;find(true);
</pre><pre class="diff" id="added">+        if ($packages-&gt;category_id === '0') {
+            $catname = 'Default';
+        } else {
+            $categories = DB_DataObject::factory('categories');
+            $categories-&gt;channel = $this-&gt;_channel;
+            $categories-&gt;id = $packages-&gt;category_id;
+            $categories-&gt;find(true);
+            $catname = $categories-&gt;name;
+        }
</pre><pre class="diff" id="context">         $releases = DB_DataObject::factory('releases');
         $releases-&gt;channel = $this-&gt;_channel;
         $releases-&gt;package = $packagename;
         if ($releases-&gt;find()) {
</pre><pre class="diff" id="removed">-            throw new Chiara_PEAR_Server_ExceptionCannotDeleteHasReleases($package, $this-&gt;_channel);
</pre><pre class="diff" id="added">+            throw new Chiara_PEAR_Server_ExceptionCannotDeleteHasReleases($package<span id="addedchars">name</span>, $this-&gt;_channel);
</pre><pre class="diff" id="context">         }
         $ret = $packages-&gt;delete() !== false;
         if ($ret) {
</pre><pre class="diff" id="removed">-            $this-&gt;deletePackageREST($packagename, $cat<span id="removedchars">egories-&gt;</span>name);
</pre><pre class="diff" id="added">+            $this-&gt;deletePackageREST($packagename, $catname);
</pre><pre class="diff" id="context">         }
         return $ret;
     }
</pre></div>
<hr /><a name="file10" /><div class="file">
<span class="pathname"><a href="http://cvs.phpdoc.org/cvs.php/PEAR_Server">PEAR_Server</a>/<a href="http://cvs.phpdoc.org/cvs.php/PEAR_Server/Server">Server</a>/<a href="http://cvs.phpdoc.org/cvs.php/PEAR_Server/Server/Backend">Backend</a><br /></span>
<div class="fileheader"><big><b>DBDataObject.php</b></big> <small id="info"><a href="http://cvs.phpdoc.org/co.php/PEAR_Server/Server/Backend/DBDataObject.php?r=1.23">1.23</a> <a href="http://cvs.phpdoc.org/diff.php/PEAR_Server/Server/Backend/DBDataObject.php?r1=1.23&r2=1.24">-&gt;</a> <a href="http://cvs.phpdoc.org/co.php/PEAR_Server/Server/Backend/DBDataObject.php?r=1.24">1.24</a></small></div>
<pre class="diff"><small id="info">diff -u -r1.23 -r1.24
--- DBDataObject.php        21 Apr 2005 03:50:18 -0000        1.23
+++ DBDataObject.php        22 Apr 2005 02:31:15 -0000        1.24
@@ -176,7 +176,7 @@
</small></pre><pre class="diff" id="context">         if ($ret) {
             $this-&gt;savePackageREST($releasedata-&gt;package);
             $this-&gt;saveReleaseREST($releasedata-&gt;package, $releasedata-&gt;version);
</pre><pre class="diff" id="removed">-            $this-&gt;saveAllReleasesREST();
</pre><pre class="diff" id="added">+            $this-&gt;saveAllReleasesREST(<span id="addedchars">$releasedata-&gt;package</span>);
</pre><pre class="diff" id="context">         }
         return $ret;
     }
</pre><pre class="diff"><small id="info">@@ -191,12 +191,12 @@
</small></pre><pre class="diff" id="context">             if (isset($channelinfo['host'])) {
                 $extra = $channelinfo['path'] . '/Chiara_PEAR_Server_REST/';
             } else {
</pre><pre class="diff" id="removed">-                $extra = '/Chiara_PEAR_Server_REST';
</pre><pre class="diff" id="added">+                $extra = '/Chiara_PEAR_Server_REST<span id="addedchars">/</span>';
</pre><pre class="diff" id="context">             }
             $releasedata = DB_DataObject::factory('releases');
             $releasedata-&gt;channel = $this-&gt;_channel;
             $releasedata-&gt;package = $package;
</pre><pre class="diff" id="removed">-            $releasedata-&gt;orderby('releasedate');
</pre><pre class="diff" id="added">+            $releasedata-&gt;orderby('releasedate<span id="addedchars">&nbsp;DESC</span>');
</pre><pre class="diff" id="context">             if (!$releasedata-&gt;find(false)) {
                 return;
             }
</pre><pre class="diff"><small id="info">@@ -232,7 +232,7 @@
</small></pre><pre class="diff" id="context">                 DIRECTORY_SEPARATOR . 'allreleases.xml', 0666);
 
             file_put_contents($rdir . DIRECTORY_SEPARATOR . $package .
</pre><pre class="diff" id="removed">-                DIRECTORY_SEPARATOR . 'latest.txt', $<span id="removedchars">version</span>);
</pre><pre class="diff" id="added">+                DIRECTORY_SEPARATOR . 'latest.txt', $<span id="addedchars">latest</span>);
</pre><pre class="diff" id="context">             @chmod($rdir . DIRECTORY_SEPARATOR . $package .
                 DIRECTORY_SEPARATOR . 'latest.txt', 0666);
             if (isset($stable)) {
</pre><pre class="diff"><small id="info">@@ -262,12 +262,6 @@
</small></pre><pre class="diff" id="context">         $channel-&gt;channel = $this-&gt;_channel;
         $channel-&gt;find(true);
         if ($channel-&gt;rest_support) {
</pre><pre class="diff" id="removed">-            $channelinfo = parse_url($this-&gt;_channel);
-            if (isset($channelinfo['host'])) {
-                $extra = $channelinfo['path'] . '/Chiara_PEAR_Server_REST/';
-            } else {
-                $extra = '/Chiara_PEAR_Server_REST';
-            }
</pre><pre class="diff" id="context">             $rdir = $this-&gt;_restdir . DIRECTORY_SEPARATOR . 'r';
             if (!file_exists($rdir . DIRECTORY_SEPARATOR . $package)) {
                 return;
</pre><pre class="diff"><small id="info">@@ -290,7 +284,7 @@
</small></pre><pre class="diff" id="context">             if (isset($channelinfo['host'])) {
                 $extra = $channelinfo['path'] . '/Chiara_PEAR_Server_REST/';
             } else {
</pre><pre class="diff" id="removed">-                $extra = '/Chiara_PEAR_Server_REST';
</pre><pre class="diff" id="added">+                $extra = '/Chiara_PEAR_Server_REST<span id="addedchars">/</span>';
</pre><pre class="diff" id="context">             }
             $releasedata = DB_DataObject::factory('releases');
             $releasedata-&gt;channel = $this-&gt;_channel;
</pre><pre class="diff"><small id="info">@@ -309,7 +303,7 @@
</small></pre><pre class="diff" id="context"> 
             $info = '&lt;?xml version="1.0"?&gt;
 &lt;r&gt;
</pre><pre class="diff" id="removed">- &lt;p xlink:href="' . $extra . 'p/' . urlencode($release['package']) . '"&gt;' . $release['package'] . '&lt;/<span id="removedchars">n</span>&gt;
</pre><pre class="diff" id="added">+ &lt;p xlink:href="' . $extra . 'p/' . urlencode($release['package']) . '"&gt;' . $release['package'] . '&lt;/<span id="addedchars">p</span>&gt;
</pre><pre class="diff" id="context">  &lt;c&gt;' . $release['channel'] . '&lt;/c&gt;
  &lt;v&gt;' . $version . '&lt;/v&gt;
  &lt;s&gt;' . $release['state'] . '&lt;/s&gt;
</pre><pre class="diff"><small id="info">@@ -455,7 +449,7 @@
</small></pre><pre class="diff" id="context">                     'alias' =&gt; 'Default',
                 );
             }
</pre><pre class="diff" id="removed">-            throw new Chiara_PEAR_Server_ExceptionCategoryDoesntExist($<span id="removedchars">id</span>, $channel);
</pre><pre class="diff" id="added">+            throw new Chiara_PEAR_Server_ExceptionCategoryDoesntExist($<span id="addedchars">category</span>, $channel);
</pre><pre class="diff" id="context">         }
     }
 
</pre><pre class="diff"><small id="info">@@ -499,8 +493,6 @@
</small></pre><pre class="diff" id="context">         }
         $category = DB_DataObject::factory('categories');
         $category-&gt;channel = $this-&gt;_channel;
</pre><pre class="diff" id="removed">-        $save = clone $category;
-        $category = $save;
</pre><pre class="diff" id="context">         $category-&gt;name = $cat-&gt;name;
         if ($category-&gt;find()) {
             throw new Chiara_PEAR_Server_ExceptionCategoryExists($cat-&gt;name, $this-&gt;_channel);
</pre><pre class="diff"><small id="info">@@ -520,20 +512,13 @@
</small></pre><pre class="diff" id="context">         $channel-&gt;channel = $this-&gt;_channel;
         $channel-&gt;find(true);
         if ($channel-&gt;rest_support) {
</pre><pre class="diff" id="removed">-            $channelinfo = parse_url($this-&gt;_channel);
-            if (isset($channelinfo['host'])) {
-                $extra = $channelinfo['path'] . '/Chiara_PEAR_Server_REST/';
-            } else {
-                $extra = '/Chiara_PEAR_Server_REST';
-            }
</pre><pre class="diff" id="context">             $cdir = $this-&gt;_restdir . DIRECTORY_SEPARATOR . 'c';
</pre><pre class="diff" id="removed">-            $category = $this-&gt;categoryInfo($category);
-            if (!file_exists($cdir . DIRECTORY_SEPARATOR . urlencode($category['name']))) {
</pre><pre class="diff" id="added">+            if (!file_exists($cdir . DIRECTORY_SEPARATOR . urlencode($category))) {
</pre><pre class="diff" id="context">                 return;
             }
             // remove all category info
             System::rm(array('-r', $this-&gt;_restdir . DIRECTORY_SEPARATOR . 'c'
</pre><pre class="diff" id="removed">-                . DIRECTORY_SEPARATOR . urlencode($category<span id="removedchars">['name']</span>)));
</pre><pre class="diff" id="added">+                . DIRECTORY_SEPARATOR . urlencode($category)));
</pre><pre class="diff" id="context">         }
     }
 
</pre><pre class="diff"><small id="info">@@ -547,7 +532,7 @@
</small></pre><pre class="diff" id="context">             if (isset($channelinfo['host'])) {
                 $extra = $channelinfo['path'] . '/Chiara_PEAR_Server_REST/';
             } else {
</pre><pre class="diff" id="removed">-                $extra = '/Chiara_PEAR_Server_REST';
</pre><pre class="diff" id="added">+                $extra = '/Chiara_PEAR_Server_REST<span id="addedchars">/</span>';
</pre><pre class="diff" id="context">             }
             $cdir = $this-&gt;_restdir . DIRECTORY_SEPARATOR . 'c';
             $category = $this-&gt;categoryInfo($category);
</pre><pre class="diff"><small id="info">@@ -589,13 +574,6 @@
</small></pre><pre class="diff" id="context">         $channel-&gt;channel = $this-&gt;_channel;
         $channel-&gt;find(true);
         if ($channel-&gt;rest_support) {
</pre><pre class="diff" id="removed">-            $channelinfo = parse_url($this-&gt;_channel);
-            if (isset($channelinfo['host'])) {
-                $extra = $channelinfo['path'] . '/Chiara_PEAR_Server_REST/';
-            } else {
-                $extra = '/Chiara_PEAR_Server_REST';
-            }
-
</pre><pre class="diff" id="context">             // remove all package and release info for the package
             System::rm(array('-r', $this-&gt;_restdir . DIRECTORY_SEPARATOR . 'p'
                 . DIRECTORY_SEPARATOR . $package));
</pre><pre class="diff"><small id="info">@@ -616,7 +594,7 @@
</small></pre><pre class="diff" id="context">             if (isset($channelinfo['host'])) {
                 $extra = $channelinfo['path'] . '/Chiara_PEAR_Server_REST/';
             } else {
</pre><pre class="diff" id="removed">-                $extra = '/Chiara_PEAR_Server_REST';
</pre><pre class="diff" id="added">+                $extra = '/Chiara_PEAR_Server_REST<span id="addedchars">/</span>';
</pre><pre class="diff" id="context">             }
             $packages = DB_DataObject::factory('packages');
             $packages-&gt;channel = $this-&gt;_channel;
</pre><pre class="diff"><small id="info">@@ -641,12 +619,12 @@
</small></pre><pre class="diff" id="context">             }
             if ($package['deprecated_package']) {
                 if ($package['deprecated_channel'] == $this-&gt;_channel) {
</pre><pre class="diff" id="removed">-                    $deprecated = '&lt;dc&gt;' . $package['deprecated_channel'] . '&lt;/dc
</pre><pre class="diff" id="added">+                    $deprecated = '&lt;dc&gt;' . $package['deprecated_channel'] . '&lt;/dc<span id="addedchars">&gt;</span>
</pre><pre class="diff" id="context">  &lt;dp href="' . $extra . 'p/' . $package['deprecated_package'] . '"&gt; ' .
                     $package['deprecated_package'] . '&lt;/dp&gt;
 ';
                 } else {
</pre><pre class="diff" id="removed">-                    $deprecated = '&lt;dc&gt;' . $package['deprecated_channel'] . '&lt;/dc
</pre><pre class="diff" id="added">+                    $deprecated = '&lt;dc&gt;' . $package['deprecated_channel'] . '&lt;/dc<span id="addedchars">&gt;</span>
</pre><pre class="diff" id="context">  &lt;dp&gt; ' . $package['deprecated_package'] . '&lt;/dp&gt;
 ';
                 }
</pre><pre class="diff"><small id="info">@@ -748,19 +726,24 @@
</small></pre><pre class="diff" id="context">         if (!$packages-&gt;find(true)) {
             throw new Chiara_PEAR_Server_ExceptionPackageDoesntExist($package, $this-&gt;_channel);
         }
</pre><pre class="diff" id="removed">-        $categories = DB_DataObject::factory('categories');
-        $categories-&gt;channel = $this-&gt;_channel;
-        $categories-&gt;id = $packages-&gt;category_id;
-        $categories-&gt;find(true);
</pre><pre class="diff" id="added">+        if ($packages-&gt;category_id === '0') {
+            $catname = 'Default';
+        } else {
+            $categories = DB_DataObject::factory('categories');
+            $categories-&gt;channel = $this-&gt;_channel;
+            $categories-&gt;id = $packages-&gt;category_id;
+            $categories-&gt;find(true);
+            $catname = $categories-&gt;name;
+        }
</pre><pre class="diff" id="context">         $releases = DB_DataObject::factory('releases');
         $releases-&gt;channel = $this-&gt;_channel;
         $releases-&gt;package = $packagename;
         if ($releases-&gt;find()) {
</pre><pre class="diff" id="removed">-            throw new Chiara_PEAR_Server_ExceptionCannotDeleteHasReleases($package, $this-&gt;_channel);
</pre><pre class="diff" id="added">+            throw new Chiara_PEAR_Server_ExceptionCannotDeleteHasReleases($package<span id="addedchars">name</span>, $this-&gt;_channel);
</pre><pre class="diff" id="context">         }
         $ret = $packages-&gt;delete() !== false;
         if ($ret) {
</pre><pre class="diff" id="removed">-            $this-&gt;deletePackageREST($packagename, $cat<span id="removedchars">egories-&gt;</span>name);
</pre><pre class="diff" id="added">+            $this-&gt;deletePackageREST($packagename, $catname);
</pre><pre class="diff" id="context">         }
         return $ret;
     }
</pre></div>
<hr /><a name="file11" /><div class="file">
<span class="pathname"><a href="http://cvs.phpdoc.org/cvs.php/PEAR_Server">PEAR_Server</a>/<a href="http://cvs.phpdoc.org/cvs.php/PEAR_Server/Server">Server</a>/<a href="http://cvs.phpdoc.org/cvs.php/PEAR_Server/Server/Frontend">Frontend</a><br /></span>
<div class="fileheader"><big><b>HTMLQuickForm.php</b></big> <small id="info"><a href="http://cvs.phpdoc.org/co.php/PEAR_Server/Server/Frontend/HTMLQuickForm.php?r=1.7">1.7</a> <a href="http://cvs.phpdoc.org/diff.php/PEAR_Server/Server/Frontend/HTMLQuickForm.php?r1=1.7&r2=1.8">-&gt;</a> <a href="http://cvs.phpdoc.org/co.php/PEAR_Server/Server/Frontend/HTMLQuickForm.php?r=1.8">1.8</a></small></div>
<pre class="diff"><small id="info">diff -u -r1.7 -r1.8
--- HTMLQuickForm.php        20 Apr 2005 04:06:19 -0000        1.7
+++ HTMLQuickForm.php        22 Apr 2005 02:31:15 -0000        1.8
@@ -373,7 +373,13 @@
</small></pre><pre class="diff" id="context">                 if ($this-&gt;_server-&gt;deleteRelease($this-&gt;_channel, $package, $_REQUEST['deleteRelease']));
             }
             if (isset($_REQUEST['deletePackage'])) {
</pre><pre class="diff" id="removed">-                if ($this-&gt;_backend-&gt;deletePackage($package));
</pre><pre class="diff" id="added">+                if (!$this-&gt;_backend-&gt;deletePackage($package)) {
+                    throw new Chiara_PEAR_Server_ExceptionPackageDoesntExist($package, $this-&gt;_channel);
+                }
+                $this-&gt;_quickForm-&gt;addElement('header', '', 'Package "' . $package
+                    . '" deleted successfully');
+                echo $this-&gt;_quickForm-&gt;toHtml();
+                return;
</pre><pre class="diff" id="context">             }
             $delete = '&lt;a href="' . $this-&gt;_index . '?f=' .
             $this-&gt;_server-&gt;getMethodIndex('deletePackage') . '&amp;managepackage=' . $package;
</pre><pre class="diff"><small id="info">@@ -429,6 +435,7 @@
</small></pre><pre class="diff" id="context">             $this-&gt;_quickForm-&gt;addElement('text', 'deprecated_channel', 'New Package Channel');
             $this-&gt;_quickForm-&gt;addElement('text', 'deprecated_package', 'New Package Name');
             $this-&gt;_quickForm-&gt;addElement('submit', 'submitted', 'Save Changes');
</pre><pre class="diff" id="added">+            $this-&gt;_quickForm-&gt;addElement('submit', 'deletePackage', 'Delete Package');
</pre><pre class="diff" id="context">             $this-&gt;_quickForm-&gt;addRule('name', 'Required', 'required');
             $this-&gt;_quickForm-&gt;addRule('license', 'Required', 'required');
             $this-&gt;_quickForm-&gt;addRule('summary', 'Required', 'required');
</pre><pre class="diff"><small id="info">@@ -455,7 +462,8 @@
</small></pre><pre class="diff" id="context">                 if (!$this-&gt;_backend-&gt;deleteCategory($category)) {
                     throw new Chiara_PEAR_Server_ExceptionCategoryDoesntExist($_REQUEST, $this-&gt;_channel);
                 }
</pre><pre class="diff" id="removed">-                $this-&gt;_quickForm-&gt;addElement('header', '', 'Category "' .<span id="removedchars">$category.&nbsp;'"&nbsp;deleted&nbsp;successfully');</span>
</pre><pre class="diff" id="added">+                $this-&gt;_quickForm-&gt;addElement('header', '', 'Category "' .<span id="addedchars">&nbsp;$category.</span>
+                    '" deleted successfully');
</pre><pre class="diff" id="context">                 echo $this-&gt;_quickForm-&gt;toHtml();
                 return;
             }
</pre></div>
<hr /><a name="file12" /><div class="file">
<span class="pathname"><a href="http://cvs.phpdoc.org/cvs.php/PEAR_Server">PEAR_Server</a>/<a href="http://cvs.phpdoc.org/cvs.php/PEAR_Server/Server">Server</a>/<a href="http://cvs.phpdoc.org/cvs.php/PEAR_Server/Server/Frontend">Frontend</a><br /></span>
<div class="fileheader"><big><b>HTMLQuickForm.php</b></big> <small id="info"><a href="http://cvs.phpdoc.org/co.php/PEAR_Server/Server/Frontend/HTMLQuickForm.php?r=1.7">1.7</a> <a href="http://cvs.phpdoc.org/diff.php/PEAR_Server/Server/Frontend/HTMLQuickForm.php?r1=1.7&r2=1.8">-&gt;</a> <a href="http://cvs.phpdoc.org/co.php/PEAR_Server/Server/Frontend/HTMLQuickForm.php?r=1.8">1.8</a></small></div>
<pre class="diff"><small id="info">diff -u -r1.7 -r1.8
--- HTMLQuickForm.php        20 Apr 2005 04:06:19 -0000        1.7
+++ HTMLQuickForm.php        22 Apr 2005 02:31:15 -0000        1.8
@@ -373,7 +373,13 @@
</small></pre><pre class="diff" id="context">                 if ($this-&gt;_server-&gt;deleteRelease($this-&gt;_channel, $package, $_REQUEST['deleteRelease']));
             }
             if (isset($_REQUEST['deletePackage'])) {
</pre><pre class="diff" id="removed">-                if ($this-&gt;_backend-&gt;deletePackage($package));
</pre><pre class="diff" id="added">+                if (!$this-&gt;_backend-&gt;deletePackage($package)) {
+                    throw new Chiara_PEAR_Server_ExceptionPackageDoesntExist($package, $this-&gt;_channel);
+                }
+                $this-&gt;_quickForm-&gt;addElement('header', '', 'Package "' . $package
+                    . '" deleted successfully');
+                echo $this-&gt;_quickForm-&gt;toHtml();
+                return;
</pre><pre class="diff" id="context">             }
             $delete = '&lt;a href="' . $this-&gt;_index . '?f=' .
             $this-&gt;_server-&gt;getMethodIndex('deletePackage') . '&amp;managepackage=' . $package;
</pre><pre class="diff"><small id="info">@@ -429,6 +435,7 @@
</small></pre><pre class="diff" id="context">             $this-&gt;_quickForm-&gt;addElement('text', 'deprecated_channel', 'New Package Channel');
             $this-&gt;_quickForm-&gt;addElement('text', 'deprecated_package', 'New Package Name');
             $this-&gt;_quickForm-&gt;addElement('submit', 'submitted', 'Save Changes');
</pre><pre class="diff" id="added">+            $this-&gt;_quickForm-&gt;addElement('submit', 'deletePackage', 'Delete Package');
</pre><pre class="diff" id="context">             $this-&gt;_quickForm-&gt;addRule('name', 'Required', 'required');
             $this-&gt;_quickForm-&gt;addRule('license', 'Required', 'required');
             $this-&gt;_quickForm-&gt;addRule('summary', 'Required', 'required');
</pre><pre class="diff"><small id="info">@@ -455,7 +462,8 @@
</small></pre><pre class="diff" id="context">                 if (!$this-&gt;_backend-&gt;deleteCategory($category)) {
                     throw new Chiara_PEAR_Server_ExceptionCategoryDoesntExist($_REQUEST, $this-&gt;_channel);
                 }
</pre><pre class="diff" id="removed">-                $this-&gt;_quickForm-&gt;addElement('header', '', 'Category "' .<span id="removedchars">$category.&nbsp;'"&nbsp;deleted&nbsp;successfully');</span>
</pre><pre class="diff" id="added">+                $this-&gt;_quickForm-&gt;addElement('header', '', 'Category "' .<span id="addedchars">&nbsp;$category.</span>
+                    '" deleted successfully');
</pre><pre class="diff" id="context">                 echo $this-&gt;_quickForm-&gt;toHtml();
                 return;
             }
</pre></div>
<hr /><a name="file13" /><div class="file">
<span class="pathname"><a href="http://cvs.phpdoc.org/cvs.php/PEAR_Server">PEAR_Server</a>/<a href="http://cvs.phpdoc.org/cvs.php/PEAR_Server/data">data</a>/<a href="http://cvs.phpdoc.org/cvs.php/PEAR_Server/data/DBDataObject">DBDataObject</a><br /></span>
<div class="fileheader"><big><b>pearserver.ini</b></big> <small id="info"><a href="http://cvs.phpdoc.org/co.php/PEAR_Server/data/DBDataObject/pearserver.ini?r=1.4">1.4</a> <a href="http://cvs.phpdoc.org/diff.php/PEAR_Server/data/DBDataObject/pearserver.ini?r1=1.4&r2=1.5">-&gt;</a> <a href="http://cvs.phpdoc.org/co.php/PEAR_Server/data/DBDataObject/pearserver.ini?r=1.5">1.5</a></small></div>
<pre class="diff"><small id="info">diff -u -r1.4 -r1.5
--- pearserver.ini        19 Apr 2005 04:04:27 -0000        1.4
+++ pearserver.ini        22 Apr 2005 02:31:15 -0000        1.5
@@ -37,7 +37,9 @@
</small></pre><pre class="diff" id="context"> count = 129
 channel = 130
 package = 130
</pre><pre class="diff" id="added">+category_id = 129
</pre><pre class="diff" id="context"> license = 130
</pre><pre class="diff" id="added">+licenseuri = 130
</pre><pre class="diff" id="context"> summary = 194
 description = 194
 parent = 130
</pre></div>
</body></html><pre>