Descr: Additions to the ODA loader routines to keep all pkg RPM information
       in the database.  (RPM List / ODA Loader Routines)

  1) Update all 'config.xml' files to remove extra (non pkg) RPMS from
      OPkg <rpmlist> elements, e.g.,
         <rpmlist>
            <rpm>pvm</rpm>
            <rpm>not-mypkg-lib</rpm>
         </rpmlist>

      So, 'not-mypkg-lib' will need to be removed.
      Those OPkgs that need to provide known un-provided distro RPMs, e.g.,
      LAM/MPI and "libaio", they will still list the <rpm> but under a
      'filter' scoping and using the 'scripts/setup' to move things from a
      pkg/media/DISTRO/not-mypkg-lib.rpm  -->  pkg/RPMS/


  2) If no 'config.xml' file OR 'config.xml' not contain <rpmlist>, then
     this still implies install all files in the RPMS/ dir on all machines
     in the cluster (server & clients).  Just populate the database in
     loader routines instead of leaving blank (current approach) using
     something like [pseudo code]:

          if( (not -e 'pkg/config.xml') or (not defined(xml.rpmlist)) ) {
             $dir = opendir(pkg/RPMS/);
             @rpms = grep(/\.rpm$/, readdir($dir) );
             foreach my $rpm (@rpms) {
                $rpm_name = `rpm -qp --qf '%{NAME}'`;
                push(chomp($rpm_name), @rpm_names);
             }
             # Add info from @rpm_names into ODA
          }
          else {
             # Add info from xml.rpmlist into ODA
          }

Might effect:
  * The code that copies things from the pkg/RPMS/ directory?
  * Repackaging of non-opkg RPMS w/ opkgs (see example in #1 above)
  * Will also effect the installation of opkgs into the image, but for now
    we could just adjust any code that looks at the filesystem, to read
    from ODA and then call DepMan/PacMan


 _________________________________________________________________________
  Thomas Naughton                                      [EMAIL PROTECTED]
  Research Associate                                   (865) 576-4184



-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Oscar-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/oscar-devel

Reply via email to