Patch to nALFS

curd curd at pandora.be
Fri Mar 7 16:07:41 PST 2003


Vassili Dzuba wrote:

>Hello,
>
>It's patch day, folks ;-)
>
>You will find on http://vassilidzuba.nerim.net/
>a patch to nALFS 1.1.7 to implement a new tag <download>.
>( http://vassilidzuba.nerim.net/downloads/nALFS-1.1.7-1.patch )
>
>An example of the use of this element is :
>
><download>
>    <file>kbd-1.08.tar.gz</file>
>    <url>ftp://ftp.win.tue.nl/pub/linux-local/utils/kbd/</url>
>    <destination>/var2/packages/</destination>
>    <digest>924e6a05e52715dc0f96385b35f2f680</digest>
></download>
>
>
>Note : i used <download> and not <archive> as previously discussed
>because this element can be used to download files that are not
>archives (e.g. patches), and because <archive> is already used
>with a different content model.
>
>The documentation of the DTD has been upgraded.
>
>Vassili Dzuba
>
>
>  
>
Hi,

First of all, apologies for the wrapping, I can't get mozilla to do it 
properly
(tried what they say here: 
http://bugzilla.mozilla.org/attachment.cgi?id=115240&action=view,
but that doesn't help apparently). If anyone knows how to do it 
properly, please let me know.

This is a great feature, but it didn't work for me.
The filename was displayed properly in the profile,
but the file that was being fetched (I use wget), had some
funny characters appended to it.
Now my knowledge of C is very limited to say the least, but figuring 
that there was
maybe something wrong with the wget routine, I managed to get it working
like this:

--- new-download.c.orig 2003-03-08 00:31:34.000000000 +0100
+++ new-download.c      2003-03-08 00:26:54.000000000 +0100
@@ -211,12 +211,12 @@
 #ifdef HAVE_LIBCURL
        status = load_url(file, url);
 #else
-       status = execute_command("wget --progress=dot -O %s %s%s", file, 
url);
+       status = execute_command("wget --progress=dot -O %s %s", file, url);
 #endif
 
        if (status) {
                Nprint_h_err("Getting url failed:");
-               Nprint_h_err("    %s%s", url);
+               Nprint_h_err("    %s", url);
 
                /* TODO: Should we delete the broken archive here? */
 

Is this me (it's 1am) or is this a bug?
Anyway thanks for the efforts, this is turning out a great tool!
I'm trying to pick up a little C, and this seems a good project to start
learning ;o)

Cheers,

-- 
Wim Van Dijck
When things go well, expect something to explode, erode, collapse or 
just disappear.

-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe alfs-discuss' in the subject header of the message



More information about the alfs-discuss mailing list