Re: Fixes for cookutils

[ Thread Index | Date Index | More lists.tuxfamily.org/slitaz Archives ]


We for got something. The way the code is now receipts TARBALL will have to be changed for this code to work. You need to add this in 2nd if statement..

if [ -d "tmp/${SOURCE:-$PACKAGE}-$VERSION" ]; then
TARBALL=${SOURCE:-$PACKAGE}-$VERSION
etc

I think you get the idea where this is needed. Also you forgot the '; then' in the typo if statement.

On Fri, May 20, 2011 at 6:27 PM, Christophe Lincoln <pankso@xxxxxxxxxx> wrote:

> I found a typo in cooker daemon script.
>
> on line: 23
> if [ ! $(mount | grep -q ${roots}$SLITAZ/src) ]
>
> it should be more like this:
> if [ ! $(mount | grep -q ${rootfs}/$SLITAZ/src) ]; then

Yep typo is roots --> rootfs but we dont want a slash here since
$SLITAZ is set to /home/slitaz

> Also i added full support for lzma recompressing. NOTE: I will still
> need to add support for get-src to repack sources if LZMA_SRC is
> used. We need a norepack option for stuff like icedjava6 that needs
> the original archive. Thats why i'm against a bulk recompress.
> https://bitbucket.org/godane/my-cookutils/changeset/ba6f23900b2a

> Here is another commit for when TARBALL's are files like scripts (ex.
> winetricks):
> https://bitbucket.org/godane/my-cookutils/changeset/8339f38b6c7b

Thanks, both commited (just quote variables in [ "$test" ] please,
it's in the cookutils README coding style):

http://hg.slitaz.org/cookutils/rev/029e2d5bbfc7
http://hg.slitaz.org/cookutils/rev/fe90a7071218

- Christophe

---
SliTaz GNU/Linux Mailing list - http://www.slitaz.org/




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/