<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/Server/Backend</tt></b> on <span id="info">MAIN</span></td></tr>
<tr><td><tt><a href="#file1">DBDataObject.php</a></tt></td><td align="right" id="added">+36</td><td align="right" id="removed">-35</td><td nowrap="nowrap" align="center"><a href="http://cvs.phpdoc.org/co.php/PEAR_Server/Server/Backend/DBDataObject.php?r=1.25">1.25</a> <a href="http://cvs.phpdoc.org/diff.php/PEAR_Server/Server/Backend/DBDataObject.php?r1=1.25&r2=1.26">-&gt;</a> <a href="http://cvs.phpdoc.org/co.php/PEAR_Server/Server/Backend/DBDataObject.php?r=1.26">1.26</a></td></tr>
</table>
<pre class="comment">
use lowercase package name, so that the installer can
find packages based on what the user types
</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>/<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.25">1.25</a> <a href="http://cvs.phpdoc.org/diff.php/PEAR_Server/Server/Backend/DBDataObject.php?r1=1.25&r2=1.26">-&gt;</a> <a href="http://cvs.phpdoc.org/co.php/PEAR_Server/Server/Backend/DBDataObject.php?r=1.26">1.26</a></small></div>
<pre class="diff"><small id="info">diff -u -r1.25 -r1.26
--- DBDataObject.php        22 Apr 2005 23:15:34 -0000        1.25
+++ DBDataObject.php        23 Apr 2005 03:35:56 -0000        1.26
@@ -199,9 +199,9 @@
</small></pre><pre class="diff" id="context">             $maintainers-&gt;channel = $this-&gt;_channel;
             if ($maintainers-&gt;find(false)) {
                 $pdir = $this-&gt;_restdir . DIRECTORY_SEPARATOR . 'p';
</pre><pre class="diff" id="removed">-                if (!file_exists($pdir . DIRECTORY_SEPARATOR . $package)) {
-                    System::mkdir(array('-p', $pdir . DIRECTORY_SEPARATOR . $package));
-                    @chmod($pdir . DIRECTORY_SEPARATOR . $package, 0777);
</pre><pre class="diff" id="added">+                if (!file_exists($pdir . DIRECTORY_SEPARATOR . strtolower($package))) {
+                    System::mkdir(array('-p', $pdir . DIRECTORY_SEPARATOR . strtolower($package)));
+                    @chmod($pdir . DIRECTORY_SEPARATOR . strtolower($package), 0777);
</pre><pre class="diff" id="context">                 }
                 $info = '&lt;?xml version="1.0"?&gt;
 &lt;m&gt;
</pre><pre class="diff"><small id="info">@@ -213,9 +213,9 @@
</small></pre><pre class="diff" id="context">                         '&lt;/a&gt;&lt;/h&gt;';
                 }
                 $info .= '&lt;/m&gt;';
</pre><pre class="diff" id="removed">-                file_put_contents($pdir . DIRECTORY_SEPARATOR . <span id="removedchars">$package</span> .
</pre><pre class="diff" id="added">+                file_put_contents($pdir . DIRECTORY_SEPARATOR . <span id="addedchars">strtolower($package)</span> .
</pre><pre class="diff" id="context">                     DIRECTORY_SEPARATOR . 'maintainers.xml', $info);
</pre><pre class="diff" id="removed">-                @chmod($pdir . DIRECTORY_SEPARATOR . <span id="removedchars">$package</span> .
</pre><pre class="diff" id="added">+                @chmod($pdir . DIRECTORY_SEPARATOR . <span id="addedchars">strtolower($package)</span> .
</pre><pre class="diff" id="context">                     DIRECTORY_SEPARATOR . 'maintainers.xml', 0666);
             }
         }
</pre><pre class="diff"><small id="info">@@ -262,35 +262,35 @@
</small></pre><pre class="diff" id="context">             }
             $info .= '&lt;/a&gt;';
             $rdir = $this-&gt;_restdir . DIRECTORY_SEPARATOR . 'r';
</pre><pre class="diff" id="removed">-            if (!file_exists($rdir . DIRECTORY_SEPARATOR . $package)) {
-                System::mkdir(array('-p', $rdir . DIRECTORY_SEPARATOR . $package));
-                @chmod($rdir . DIRECTORY_SEPARATOR . $package, 0777);
</pre><pre class="diff" id="added">+            if (!file_exists($rdir . DIRECTORY_SEPARATOR . strtolower($package))) {
+                System::mkdir(array('-p', $rdir . DIRECTORY_SEPARATOR . strtolower($package)));
+                @chmod($rdir . DIRECTORY_SEPARATOR . strtolower($package), 0777);
</pre><pre class="diff" id="context">             }
</pre><pre class="diff" id="removed">-            file_put_contents($rdir . DIRECTORY_SEPARATOR . <span id="removedchars">$package</span> .
</pre><pre class="diff" id="added">+            file_put_contents($rdir . DIRECTORY_SEPARATOR . <span id="addedchars">strtolower($package)</span> .
</pre><pre class="diff" id="context">                 DIRECTORY_SEPARATOR . 'allreleases.xml', $info);
</pre><pre class="diff" id="removed">-            @chmod($rdir . DIRECTORY_SEPARATOR . <span id="removedchars">$package</span> .
</pre><pre class="diff" id="added">+            @chmod($rdir . DIRECTORY_SEPARATOR . <span id="addedchars">strtolower($package)</span> .
</pre><pre class="diff" id="context">                 DIRECTORY_SEPARATOR . 'allreleases.xml', 0666);
 
</pre><pre class="diff" id="removed">-            file_put_contents($rdir . DIRECTORY_SEPARATOR . <span id="removedchars">$package</span> .
</pre><pre class="diff" id="added">+            file_put_contents($rdir . DIRECTORY_SEPARATOR . <span id="addedchars">strtolower($package)</span> .
</pre><pre class="diff" id="context">                 DIRECTORY_SEPARATOR . 'latest.txt', $latest);
</pre><pre class="diff" id="removed">-            @chmod($rdir . DIRECTORY_SEPARATOR . <span id="removedchars">$package</span> .
</pre><pre class="diff" id="added">+            @chmod($rdir . DIRECTORY_SEPARATOR . <span id="addedchars">strtolower($package)</span> .
</pre><pre class="diff" id="context">                 DIRECTORY_SEPARATOR . 'latest.txt', 0666);
             if (isset($stable)) {
</pre><pre class="diff" id="removed">-                file_put_contents($rdir . DIRECTORY_SEPARATOR . <span id="removedchars">$package</span> .
</pre><pre class="diff" id="added">+                file_put_contents($rdir . DIRECTORY_SEPARATOR . <span id="addedchars">strtolower($package)</span> .
</pre><pre class="diff" id="context">                     DIRECTORY_SEPARATOR . 'stable.txt', $stable);
</pre><pre class="diff" id="removed">-                @chmod($rdir . DIRECTORY_SEPARATOR . <span id="removedchars">$package</span> .
</pre><pre class="diff" id="added">+                @chmod($rdir . DIRECTORY_SEPARATOR . <span id="addedchars">strtolower($package)</span> .
</pre><pre class="diff" id="context">                     DIRECTORY_SEPARATOR . 'stable.txt', 0666);
             }
             if (isset($beta)) {
</pre><pre class="diff" id="removed">-                file_put_contents($rdir . DIRECTORY_SEPARATOR . <span id="removedchars">$package</span> .
</pre><pre class="diff" id="added">+                file_put_contents($rdir . DIRECTORY_SEPARATOR . <span id="addedchars">strtolower($package)</span> .
</pre><pre class="diff" id="context">                     DIRECTORY_SEPARATOR . 'beta.txt', $beta);
</pre><pre class="diff" id="removed">-                @chmod($rdir . DIRECTORY_SEPARATOR . <span id="removedchars">$package</span> .
</pre><pre class="diff" id="added">+                @chmod($rdir . DIRECTORY_SEPARATOR . <span id="addedchars">strtolower($package)</span> .
</pre><pre class="diff" id="context">                     DIRECTORY_SEPARATOR . 'beta.txt', 0666);
             }
             if (isset($alpha)) {
</pre><pre class="diff" id="removed">-                file_put_contents($rdir . DIRECTORY_SEPARATOR . <span id="removedchars">$package</span> .
</pre><pre class="diff" id="added">+                file_put_contents($rdir . DIRECTORY_SEPARATOR . <span id="addedchars">strtolower($package)</span> .
</pre><pre class="diff" id="context">                     DIRECTORY_SEPARATOR . 'alpha.txt', $alpha);
</pre><pre class="diff" id="removed">-                @chmod($rdir . DIRECTORY_SEPARATOR . <span id="removedchars">$package</span> .
</pre><pre class="diff" id="added">+                @chmod($rdir . DIRECTORY_SEPARATOR . <span id="addedchars">strtolower($package)</span> .
</pre><pre class="diff" id="context">                     DIRECTORY_SEPARATOR . 'alpha.txt', 0666);
             }
         }
</pre><pre class="diff"><small id="info">@@ -303,12 +303,12 @@
</small></pre><pre class="diff" id="context">         $channel-&gt;find(true);
         if ($channel-&gt;rest_support) {
             $rdir = $this-&gt;_restdir . DIRECTORY_SEPARATOR . 'r';
</pre><pre class="diff" id="removed">-            if (!file_exists($rdir . DIRECTORY_SEPARATOR . <span id="removedchars">$package</span>)) {
</pre><pre class="diff" id="added">+            if (!file_exists($rdir . DIRECTORY_SEPARATOR . <span id="addedchars">strtolower($package)</span>)) {
</pre><pre class="diff" id="context">                 return;
             }
</pre><pre class="diff" id="removed">-            @unlink($rdir . DIRECTORY_SEPARATOR . <span id="removedchars">$package</span> .
</pre><pre class="diff" id="added">+            @unlink($rdir . DIRECTORY_SEPARATOR . <span id="addedchars">strtolower($package)</span> .
</pre><pre class="diff" id="context">                 DIRECTORY_SEPARATOR . $version . '.xml');
</pre><pre class="diff" id="removed">-            @unlink($rdir . DIRECTORY_SEPARATOR . <span id="removedchars">$package</span> .
</pre><pre class="diff" id="added">+            @unlink($rdir . DIRECTORY_SEPARATOR . <span id="addedchars">strtolower($package)</span> .
</pre><pre class="diff" id="context">                 DIRECTORY_SEPARATOR . 'package.' . $version . '.xml');
             $this-&gt;saveAllReleasesREST($package);
         }
</pre><pre class="diff"><small id="info">@@ -336,9 +336,9 @@
</small></pre><pre class="diff" id="context">             $release = $releasedata-&gt;toArray();
             $rdir = $this-&gt;_restdir . DIRECTORY_SEPARATOR . 'r';
 
</pre><pre class="diff" id="removed">-            if (!file_exists($rdir . DIRECTORY_SEPARATOR . $package)) {
-                System::mkdir(array('-p', $rdir . DIRECTORY_SEPARATOR . $package));
-                @chmod($rdir . DIRECTORY_SEPARATOR . $package, 0777);
</pre><pre class="diff" id="added">+            if (!file_exists($rdir . DIRECTORY_SEPARATOR . strtolower($package))) {
+                System::mkdir(array('-p', $rdir . DIRECTORY_SEPARATOR . strtolower($package)));
+                @chmod($rdir . DIRECTORY_SEPARATOR . strtolower($package), 0777);
</pre><pre class="diff" id="context">             }
 
             $info = '&lt;?xml version="1.0"?&gt;
</pre><pre class="diff"><small id="info">@@ -356,14 +356,14 @@
</small></pre><pre class="diff" id="context">  &lt;g&gt;http://' . $this-&gt;_channel . '/get/' . $release['package'] . '-' . $release['version'] . '&lt;/g&gt;
  &lt;x xlink:href="package.' . $version . '.xml"/&gt;
 &lt;/r&gt;';
</pre><pre class="diff" id="removed">-            file_put_contents($rdir . DIRECTORY_SEPARATOR . <span id="removedchars">$release['package']</span> .
</pre><pre class="diff" id="added">+            file_put_contents($rdir . DIRECTORY_SEPARATOR . <span id="addedchars">strtolower($release['package'])</span> .
</pre><pre class="diff" id="context">                 DIRECTORY_SEPARATOR . $version . '.xml', $info);
</pre><pre class="diff" id="removed">-            @chmod($rdir . DIRECTORY_SEPARATOR . $release['package'] .
</pre><pre class="diff" id="added">+            @chmod($rdir . DIRECTORY_SEPARATOR . strtolower($release['package']) .
</pre><pre class="diff" id="context">                 DIRECTORY_SEPARATOR . $version . '.xml', 0666);
</pre><pre class="diff" id="removed">-            file_put_contents($rdir . DIRECTORY_SEPARATOR . <span id="removedchars">$release['package']</span> .
</pre><pre class="diff" id="added">+            file_put_contents($rdir . DIRECTORY_SEPARATOR . <span id="addedchars">strtolower($release['package'])</span> .
</pre><pre class="diff" id="context">                 DIRECTORY_SEPARATOR . 'package.' .
                 $version . '.xml', $this-&gt;getPackageXml($release['package'], $version));
</pre><pre class="diff" id="removed">-            @chmod($rdir . DIRECTORY_SEPARATOR . $release['package'] .
</pre><pre class="diff" id="added">+            @chmod($rdir . DIRECTORY_SEPARATOR . strtolower($release['package']) .
</pre><pre class="diff" id="context">                 DIRECTORY_SEPARATOR . 'package.' . $version . '.xml', 0666);
         }
     }
</pre><pre class="diff"><small id="info">@@ -616,9 +616,9 @@
</small></pre><pre class="diff" id="context">         if ($channel-&gt;rest_support) {
             // remove all package and release info for the package
             System::rm(array('-r', $this-&gt;_restdir . DIRECTORY_SEPARATOR . 'p'
</pre><pre class="diff" id="removed">-                . DIRECTORY_SEPARATOR . <span id="removedchars">$package</span>));
</pre><pre class="diff" id="added">+                . DIRECTORY_SEPARATOR . <span id="addedchars">strtolower($package)</span>));
</pre><pre class="diff" id="context">             System::rm(array('-r', $this-&gt;_restdir . DIRECTORY_SEPARATOR . 'r'
</pre><pre class="diff" id="removed">-                . DIRECTORY_SEPARATOR . <span id="removedchars">$package</span>));
</pre><pre class="diff" id="added">+                . DIRECTORY_SEPARATOR . <span id="addedchars">strtolower($package)</span>));
</pre><pre class="diff" id="context">             // reset categories info
             $this-&gt;saveCategoryREST($category);
         }
</pre><pre class="diff"><small id="info">@@ -645,9 +645,10 @@
</small></pre><pre class="diff" id="context">             $package = $packages-&gt;toArray();
 
             $pdir = $this-&gt;_restdir . DIRECTORY_SEPARATOR . 'p';
</pre><pre class="diff" id="removed">-            if (!file_exists($pdir . DIRECTORY_SEPARATOR . $package['package'])) {
-                System::mkdir(array('-p', $pdir . DIRECTORY_SEPARATOR . $package['package']));
-                @chmod($pdir . DIRECTORY_SEPARATOR . $package['package'], 0777);
</pre><pre class="diff" id="added">+            if (!file_exists($pdir . DIRECTORY_SEPARATOR . strtolower($package['package']))) {
+                System::mkdir(array('-p', $pdir . DIRECTORY_SEPARATOR .
+                    strtolower($package['package'])));
+                @chmod($pdir . DIRECTORY_SEPARATOR . strtolower($package['package']), 0777);
</pre><pre class="diff" id="context">             }
             $catinfo = $this-&gt;categoryInfo($this-&gt;categoryFromId($package['category_id']));
             if ($package['parent']) {
</pre><pre class="diff"><small id="info">@@ -685,9 +686,9 @@
</small></pre><pre class="diff" id="context">  ' . $parent . $deprecated . '
 &lt;/p&gt;';
             // package information
</pre><pre class="diff" id="removed">-            file_put_contents($pdir . DIRECTORY_SEPARATOR . <span id="removedchars">$package['package']</span> .
</pre><pre class="diff" id="added">+            file_put_contents($pdir . DIRECTORY_SEPARATOR . <span id="addedchars">strtolower($package['package'])</span> .
</pre><pre class="diff" id="context">                 DIRECTORY_SEPARATOR . 'info.xml', $info);
</pre><pre class="diff" id="removed">-            @chmod($pdir . DIRECTORY_SEPARATOR . $package['package'] .
</pre><pre class="diff" id="added">+            @chmod($pdir . DIRECTORY_SEPARATOR . strtolower($package['package']) .
</pre><pre class="diff" id="context">                 DIRECTORY_SEPARATOR . 'info.xml', 0666);
         }
     }
</pre></div>
</body></html><pre>