[Dehs-devel] r195 - trunk

Raphael Geissert geissert at alioth.debian.org
Tue Jul 5 00:24:37 UTC 2011


Author: geissert
Date: 2011-07-05 00:24:37 +0000 (Tue, 05 Jul 2011)
New Revision: 195

Modified:
   trunk/dehs_pg.php
Log:
drop useless references


Modified: trunk/dehs_pg.php
===================================================================
--- trunk/dehs_pg.php	2011-07-05 00:15:46 UTC (rev 194)
+++ trunk/dehs_pg.php	2011-07-05 00:24:37 UTC (rev 195)
@@ -137,7 +137,7 @@
     pg_close($db);
     return "Fatto\n";
 }
-function download_diff(&$conn_id,$pkg,$version,$directory,$md5_diff,$md5_atsource,$diff_kb,$dist) {
+function download_diff($conn_id,$pkg,$version,$directory,$md5_diff,$md5_atsource,$diff_kb,$dist) {
     global $dirs,$mirrors;
     $diffTypes = array(".diff.gz",".debian.tar.gz",".debian.tar.bz2");
 
@@ -324,7 +324,7 @@
     if (pg_numrows($rsql)==0) echo "Package=> " . $pkg . "\nNot found\n!!";
     pg_close($db);
 }
-function byte_total(&$db,$initial) {
+function byte_total($db,$initial) {
     global $dirs;
     $rsql=pg_exec ($db,"Select sum(bytes) as totbytes FROM pkgs WHERE name like '$initial%' AND (md5_diff!=md5_atsource or md5_diff is null)");
     $res_array=pg_fetch_array($rsql);
@@ -420,7 +420,7 @@
     if($sw) return $sw;
     else return false;
 }
-function pg_table_exists (&$dblink, $table) {
+function pg_table_exists ($dblink, $table) {
     $sql = "SELECT relname as tbl FROM pg_class WHERE relname = '$table'";
     if ($res = pg_exec ($dblink, $sql)) {
         return pg_numrows($res) > 0;
@@ -445,7 +445,7 @@
 function remote_dist_dir($dist) {
     return "/debian/dists";
 }
-function clear_db(&$db) {
+function clear_db($db) {
     $sql1=	"Delete from binpkgs where id NOT IN
 			(select id FROM binpkgs INNER JOIN bin_atsrc USING (name,bin_name,dist))" ;
     $sql2=	"Delete from pkgs where id NOT IN (select id FROM pkgs INNER JOIN pkgs_atsrc USING (name,dist))" ;




More information about the Dehs-devel mailing list