Still a dummie when in it comes to scripts.  So, WHERE in the script 
do I insert this?

Thanks!

-- 
Ty Mixon
e-mail: [EMAIL PROTECTED]
ICQ:    26147713
>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<

On 8/22/99, 3:53:08 PM, [EMAIL PROTECTED] wrote regarding Re: 
[newbie] Connecting Mandrake Update to Cooker:

[snip]

> but i'm in a nice day :) here is patch for 
/usr/X11R6/bin/MandrakeUpdate.pm :

> 
-----------------------------------------------------------------------
---------
> --- /usr/X11R6/bin/MandrakeUpdate.pm  Wed May 19 02:50:52 1999
> +++ /tmp/MandrakeUpdate.pm    Thu Jul 22 15:32:14 1999
> @@ -30,13 +30,11 @@
>       open F, "find . -name '*.rpm' |";
>       @to_update = map { chop; $_ } <F>;
>      } else {
> -     open F, "wget --passive-ftp $mirror/updates/$version/ls-lR -O - 
|";
> +     my $sub = "cooker/Mandrake/RPMS";
> +     open F, "wget --passive-ftp $mirror/$sub/ -O - |";
>       foreach (<F>) {
> -         if (/^([^ ]+):$/) {
> -             $rep = "updates/$version/$1";
> -         } elsif (/^-/) {
> -             $rep =~ /SRPMS/ and next;
> -             $name = (split ' ', $_)[8] and push @to_update, 
"$rep/$name";
> +         if (m|>([^<]*)</a>|) {
> +             push @to_update, "$sub/$1";
>           }
>       }
>      }
> 
-----------------------------------------------------------------------
---------

> you also have to manually edit your ~/.mandrake-update to point to a 
cooker
> directory (eg mirror: ftp://ftp.ciril.fr/pub/linux/mandrake-devel)




Reply via email to