Diff for /rpm2html/rpmopen.c between versions 1.97 and 1.98

version 1.97, 2001/02/07 09:35:37 version 1.98, 2001/02/09 17:36:08
Line 811  rpmDataPtr rpmAnalyze(char *path, char * Line 811  rpmDataPtr rpmAnalyze(char *path, char *
     #endif WITH_GPG      #endif WITH_GPG
   
 #ifdef WITH_SQL  #ifdef WITH_SQL
     id = sql_add_package(path, rpm->name, rpm->version, rpm->release,      if ((path == NULL) || (!sql_get_package_id(path))) {
                          rpm->arch, dir->no, rpm->url, rpm->extra->srcrpm,          id = sql_add_package(path, rpm->name, rpm->version, rpm->release,
                          dir->vendor, rpm->extra->packager,                               rpm->arch, dir->no, rpm->url, rpm->extra->srcrpm,
                          rpm->group, rpm->summary, rpm->extra->description,                               dir->vendor, rpm->extra->packager,
                          rpm->extra->copyright, rpm->date, rpm->size, rpm->os,                               rpm->group, rpm->summary, rpm->extra->description,
                          rpm->distribution, rpm->vendor);                               rpm->extra->copyright, rpm->date, rpm->size,
     if (id > 0) {                               rpm->os, rpm->distribution, rpm->vendor);
         for (i = 0;i < rpm->extra->nb_resources;i++)          if (id > 0) {
             sql_add_provides(id, rpm->extra->resources[i]->name);              for (i = 0;i < rpm->extra->nb_resources;i++)
         for (i = 0;i < rpm->extra->nb_requires;i++)                  sql_add_provides(id, rpm->extra->resources[i]->name);
             sql_add_requires(id, rpm->extra->requires[i]->name,              for (i = 0;i < rpm->extra->nb_requires;i++)
                              rpm->extra->requires[i]->flag,                  sql_add_requires(id, rpm->extra->requires[i]->name,
                              rpm->extra->requires[i]->version);                                   rpm->extra->requires[i]->flag,
     }                                   rpm->extra->requires[i]->version);
           }
       } else
           id = 0;
 #endif  #endif
   
     /* Add the package files to the real filesystem tree if asked for */      /* Add the package files to the real filesystem tree if asked for */

Removed from v.1.97  
changed lines
  Added in v.1.98


Webmaster