<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">-></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">-></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->channel = $this->_channel;
if ($maintainers->find(false)) {
$pdir = $this->_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 = '<?xml version="1.0"?>
<m>
</pre><pre class="diff"><small id="info">@@ -213,9 +213,9 @@
</small></pre><pre class="diff" id="context"> '</a></h>';
}
$info .= '</m>';
</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 .= '</a>';
$rdir = $this->_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->find(true);
if ($channel->rest_support) {
$rdir = $this->_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->saveAllReleasesREST($package);
}
</pre><pre class="diff"><small id="info">@@ -336,9 +336,9 @@
</small></pre><pre class="diff" id="context"> $release = $releasedata->toArray();
$rdir = $this->_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 = '<?xml version="1.0"?>
</pre><pre class="diff"><small id="info">@@ -356,14 +356,14 @@
</small></pre><pre class="diff" id="context"> <g>http://' . $this->_channel . '/get/' . $release['package'] . '-' . $release['version'] . '</g>
<x xlink:href="package.' . $version . '.xml"/>
</r>';
</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->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->rest_support) {
// remove all package and release info for the package
System::rm(array('-r', $this->_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->_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->saveCategoryREST($category);
}
</pre><pre class="diff"><small id="info">@@ -645,9 +645,10 @@
</small></pre><pre class="diff" id="context"> $package = $packages->toArray();
$pdir = $this->_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->categoryInfo($this->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 . '
</p>';
// 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>