[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#35880] [PATCH 3/7] utils: Support compression and decompression wit
From: |
Ludovic Courtès |
Subject: |
[bug#35880] [PATCH 3/7] utils: Support compression and decompression with lzip. |
Date: |
Sun, 26 May 2019 21:52:15 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) |
Pierre Neidhardt <address@hidden> skribis:
> This is the part where you use make-lzip-input-port/compressed:
>
>> (define (compressed-port compression input)
>> - "Return an input port where INPUT is decompressed according to
>> COMPRESSION,
>> + "Return an input port where INPUT is compressed according to COMPRESSION,
>> a symbol such as 'xz."
>> (match compression
>> ((or #f 'none) (values input '()))
>> ('bzip2 (filtered-port `(,%bzip2 "-c") input))
>> ('xz (filtered-port `(,%xz "-c") input))
>> ('gzip (filtered-port `(,%gzip "-c") input))
>> - (else (error "unsupported compression scheme" compression))))
>> + ('lzip (values (lzip-port 'make-lzip-input-port/compressed
>> input)
>> + '()))
>> + (_ (error "unsupported compression scheme" compression))))
>
> So why not doing like for the others?
See my other previous reply. :-)
- [bug#35880] [PATCH 0/7] Lzip support for 'guix publish' and 'guix substitute', Ludovic Courtès, 2019/05/24
- [bug#35880] [PATCH 1/7] lzlib: Add 'make-lzip-input-port/compressed'., Ludovic Courtès, 2019/05/24
- [bug#35880] [PATCH 5/7] self: Add dependency on lzlib., Ludovic Courtès, 2019/05/24
- [bug#35880] [PATCH 6/7] gnu: guix: Add dependency on lzlib., Ludovic Courtès, 2019/05/24
- [bug#35880] [PATCH 7/7] lzlib: 'lzread!' never returns more than it was asked for., Ludovic Courtès, 2019/05/24
- [bug#35880] [PATCH 7/7] lzlib: 'lzread!' never returns more than it was asked for., Pierre Neidhardt, 2019/05/25
- [bug#35880] [PATCH 7/7] lzlib: 'lzread!' never returns more than it was asked for., Ludovic Courtès, 2019/05/26
- [bug#35880] [PATCH 7/7] lzlib: 'lzread!' never returns more than it was asked for., Pierre Neidhardt, 2019/05/26
- [bug#35880] [PATCH 7/7] lzlib: 'lzread!' never returns more than it was asked for., Ludovic Courtès, 2019/05/26
- [bug#35880] [PATCH 7/7] lzlib: 'lzread!' never returns more than it was asked for., Pierre Neidhardt, 2019/05/27
- [bug#35880] [PATCH 7/7] lzlib: 'lzread!' never returns more than it was asked for., Ludovic Courtès, 2019/05/27
[bug#35880] [PATCH 4/7] publish: Add support for lzip., Ludovic Courtès, 2019/05/24