Hi,
        Thanks to whoever wrote the precook.sh script...works really well.. I 
noticed on my download that some rpm's weren't in the rpmlist

 >>  for i in `cat $LOCAL_ROOT/Mandrake/base/rpmslist`  

so I modified the program to go through each file on the $REMOTE_LIST, parse 
off the version numbers with a little perl and continue as before

here are the changed lines and the perl script  (sorry 'bout the code... it's 
been a long time :-))

 
rsync -anvf 
tp.sunet.se::pub/Linux/distributions/mandrake-devel/7.2beta/i586/Mandrake/RPMS/ 
for i in `cat $LOCAL_LIST`
        do
                J=`grep "^$i" $LOCAL_LIST | head -n1`
                K=`perl test.pl $J`
                LOC=`grep "^$K" $LOCAL_LIST | head -n1`
                REM=`grep "^$K" $REMOTE_LIST | head -n1`
                clear
                echo "++++++++++++++++++++++++++++++++++++++++++++++++++++"   
                echo "$i"
                if [ "$REM" != "" ]; then
   
and so on as before


Ruairi
# ck an rsync tree to try to save rsync d/l
# author: Allen Bolderoff <[EMAIL PROTECTED]>
#edit these to suit your preference.
$REMOTE_ROOT="ftp.sunet.se::pub/Linux/distributions/mandrake-devel/7.2beta/i586";
$LOCAL_ROOT="/home/hickeyr/7.2/i586";
$REMOTE_LIST="/tmp/remote";
$LOCAL_LIST="/tmp/local";

$_ = $ARGV[0];
s/(-[0-9])*.mdk.i586.rpm//;
print ( "$_");

Reply via email to