/[dehs]/trunk/dehs_pg.php
ViewVC logotype

Diff of /trunk/dehs_pg.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 168 by atomo64-guest, Sat Apr 4 18:56:14 2009 UTC revision 175 by geissert, Wed Nov 25 17:55:19 2009 UTC
# Line 185  function db_add($initial='') { Line 185  function db_add($initial='') {
185      pg_exec($db, "CREATE UNIQUE INDEX idxbis on bin_atsrc (name,bin_name,dist)") or die_status('Error creating index on temp table bin_atsrc');      pg_exec($db, "CREATE UNIQUE INDEX idxbis on bin_atsrc (name,bin_name,dist)") or die_status('Error creating index on temp table bin_atsrc');
186    
187      foreach ($dists as $dist=>$sections) {      foreach ($dists as $dist=>$sections) {
188            $pkgs = array();
189          foreach ($sections as $section) {          foreach ($sections as $section) {
190              $filename=$dirs['sources_dir'] . "/$dist/$section/Sources.gz";              $filename=$dirs['sources_dir'] . "/$dist/$section/Sources.gz";
191              print "\nI'm parsing $dist/$section => Sources.gz\n";              print "\nI'm parsing $dist/$section => Sources.gz\n";
# Line 203  function db_add($initial='') { Line 204  function db_add($initial='') {
204                          $buff1 .= $line;                          $buff1 .= $line;
205                      }                      }
206                      if (preg_match($regexp,$buff1,$matches))  {                      if (preg_match($regexp,$buff1,$matches))  {
207                            if (isset($pkgs[$matches[1]]))
208                                continue;
209                            else
210                                $pkgs[$matches[1]] = 1;
211                          if ($matches[5]) {                          if ($matches[5]) {
212                              $matches[5]=iconv("ISO-8859-1","UTF-8",$matches[5]);                              $matches[5]=iconv("ISO-8859-1","UTF-8",$matches[5]);
213                              $matches[5]=pg_escape_string($matches[5]);                              $matches[5]=pg_escape_string($matches[5]);

Legend:
Removed from v.168  
changed lines
  Added in v.175

  ViewVC Help
Powered by ViewVC 1.1.5