Patch for nALFS

Martin Imobersteg imm at gmx.ch
Mon Dec 17 08:08:34 PST 2001


Hi,
i think ALFS could be improved a lot.
My first propose of an enhancement is a <source> tag for <unpack> which 
contains an url.
If <unpack> can't find the package at <archive> it will get it from <source>.

Ex:

<unpack>
<archive>/usr/src/packages/ed-0.2.tar.bz2</archive>
<destination>/usr/src</destination>  
<source>ftp://ftp.linuxfromscratch.org/lfs-packages/3.1/ed-0.2.tar.bz2</source>
</unpack>


It propose to change the syntax to something like this:

<unpack>
<source>ftp://ftp.linuxfromscratch.org/lfs-packages/3.1/ed-0.2.tar.bz2</source>
<destination>/usr/src</destination> 
<archive>/usr/src/packeges<archive>   
</unpack>

<unpack> would the look for a package ed-0.2.tar.bz2 in /usr/src/packeges.
If there is none get it from <source>
But this is maybe for <alfs version="3.0"> :-)

Attached you find a patch against src/handlers/unpack.c.
Please give it a try.

Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: unpack.patch
Type: text/x-diff
Size: 1453 bytes
Desc: not available
URL: <http://lists.linuxfromscratch.org/pipermail/alfs-discuss/attachments/20011217/086ade9b/attachment.patch>


More information about the alfs-discuss mailing list