New devel version released...

Greg Kurtzer <[email protected]> Thu, 16 May 2002 14:38:38 -0700
Newsgroups gmane.linux.redhat.rpm.grab
Message-ID <[email protected]>
OK, Well I just uploaded the newest devel version to runlevelzero.net. It is
really a major rewrite. I am attempting package dependency checking before it
downloads any package(s). It works OK except for when a locally installed
package requires a certain version of code to work (i.e. upgrade of mozilla
will break a currently installed (older) version of mozilla-mail).

Also, I rewrote the sysupdate and searching algorithms to be almost
instantaneous. Literally .5 sec compared to ~40 seconds on my laptop.

Because all of the code was written into a fresh source file, I am sure there
are LOTS of bugs. The potential now of GRAB is much better.

Here is a snippet where I searched for all new (uninstalled) packages, and 
randomly selected 1-15. It automatically grabbed the deps (before download) 
and installed all packages. There are bugs in the filter output that I know 
and still random bits of functionality that I have not incorporated yet.

Please send comments, bugs, suggestions! 

<SNIP>
[gmkurtzer@spike src]$ sudo ./grab -s --status N --test
-Obtaining current RPM list...
-Filtered Package Statistics:
  0 Old, 0 Consolidated, 0 Different Arch, 1477 Current, 15 Skiplist, 905 Status
 ->Skipped packages can be viewed with the '--noskip' option
-Please select one (or more) of the following matched RPMS:

 Num S Package name       Version     Installed   Arch   Size   Server Desc
 --- - ------------------ ----------- ----------- ------ ------ ---------------
 1   N Canna              3.5b2-62    --          i386   7.1M   [email protected]
 2   N Canna-devel        3.5b2-62    --          i386   438K   [email protected]

                                 ....BREAK....


 553 N xtraceroute        0.9.0-6     2.20-1      i386   772K   [email protected]
 554 N ytalk              3.1.1-7     2.20-1      i386   39K    [email protected]
 555 N zebra              0.92a-3     2.20-1      i386   964K   [email protected]
 556 N zisofs-tools       1.0.3-3     2.20-1      i386   15K    [email protected]
 557 N zsh                4.0.4-5     2.20-1      i386   1.3M   [email protected]

-Choose number(s): ('?' for help): 1-15
-Here is what I will download:

 Num Package To Download                         Location
 --- ------------------------------------------  -----------------------------
 1   Canna-3.5b2-62.i386.rpm                     altruistic.lbl.gov /pub/repos
 2   Canna-devel-3.5b2-62.i386.rpm               altruistic.lbl.gov /pub/repos
 3   Canna-libs-3.5b2-62.i386.rpm                altruistic.lbl.gov /pub/repos
 4   ElectricFence-2.2.2-8.i386.rpm              altruistic.lbl.gov /pub/repos
 5   FreeWnn-1.11-20.i386.rpm                    altruistic.lbl.gov /pub/repos
 6   FreeWnn-common-1.11-20.i386.rpm             altruistic.lbl.gov /pub/repos
 7   FreeWnn-devel-1.11-20.i386.rpm              altruistic.lbl.gov /pub/repos
 8   FreeWnn-libs-1.11-20.i386.rpm               altruistic.lbl.gov /pub/repos
 9   Gtk-Perl-0.7008-13.i386.rpm                 altruistic.lbl.gov /pub/repos
 10  ImageMagick-perl-5.4.3.11-1.i386.rpm        altruistic.lbl.gov /pub/repos
 11  LPRng-3.8.9-3.i386.rpm                      altruistic.lbl.gov /pub/repos
 12  MagicPoint-1.09a-1.i386.rpm                 altruistic.lbl.gov /pub/repos
 13  MyODBC-2.50.39-4.i386.rpm                   altruistic.lbl.gov /pub/repos
 14  MySQL-python-0.9.1-1.i386.rpm               altruistic.lbl.gov /pub/repos
 15  PyQt-examples-3.1-2.i386.rpm                altruistic.lbl.gov /pub/repos

-You selected 12.6M of archives
 ->Do you want to continue? [Y/n]:
-Building package provides database...
-Searching for unresolved dependancies...
 -> Gtk-Perl-0.7008-13.i386.rpm...
        +gtkglarea (gtkglarea-1.2.2-10.i386.rpm)
        +libgtkgl.so.5 (gtkglarea-1.2.2-10.i386.rpm)
 -> MyODBC-2.50.39-4.i386.rpm...
        +libmysqlclient.so.10 (mysqlclient9-3.23.22-6.i386.rpm)
 -> MySQL-python-0.9.1-1.i386.rpm...
        +mx (mx-2.0.3-1.i386.rpm)
        +mysql (mysql-3.23.49-3.i386.rpm)
        -python<1.6
        +libmysqlclient.so.10 (mysqlclient9-3.23.22-6.i386.rpm)
 -> mysql-3.23.49-3.i386.rpm...
        +libmysqlclient.so.10 (mysqlclient9-3.23.22-6.i386.rpm)
 -> mysqlclient9-3.23.22-6.i386.rpm...
=> UNMATCHED: python<1.6
-Filtered Package Statistics:
  0 Old, -3 Consolated, 0 Different Arch, 4 Current, 0 Skiplist, 0 Status
-Please select one (or more) of the following matched RPMS:

 Num S Package name       Version     Installed   Arch   Size   Server Desc
 --- - ------------------ ----------- ----------- ------ ------ ---------------
 1   N mysql              3.23.49-3   --          i386   4.6M   [email protected]
 2   N mysqlclient9       3.23.22-6   --          i386   121K   [email protected]
 3   N mx                 2.0.3-1     --          i386   732K   [email protected]
 4   N gtkglarea          1.2.2-10    --          i386   60K    [email protected]

-Choose number(s): ('?' for help): a
-Here is what I will download:

 Num Package To Download                         Location
 --- ------------------------------------------  -----------------------------
 1   mysql-3.23.49-3.i386.rpm                    altruistic.lbl.gov /pub/repos
 2   mysqlclient9-3.23.22-6.i386.rpm             altruistic.lbl.gov /pub/repos
 3   mx-2.0.3-1.i386.rpm                         altruistic.lbl.gov /pub/repos
 4   gtkglarea-1.2.2-10.i386.rpm                 altruistic.lbl.gov /pub/repos

-You selected 5.5M of archives
 ->Do you want to continue? [Y/n]:
-Checking the signature of the cached RPM(s)
-All downloaded RPMS passed validation
-Calling 'rpm -Uvh --test' for 19 package(s)...
Preparing...                ########################################### [100%]
[gmkurtzer@spike src]$
</SNIP>
-- 
Greg Kurtzer
[email protected]
http://www.runlevelzero.net
LINUX,... The choice of a GNU generation!
:wq