GNU bug report logs - #44256
“guix import cran -a bioconductor FOO” downloads twice

Previous Next

Package: guix;

Reported by: zimoun <zimon.toutoune <at> gmail.com>

Date: Tue, 27 Oct 2020 13:56:01 UTC

Severity: normal

Merged with 48792

Done: Ricardo Wurmus <rekado <at> elephly.net>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 44256 <at> debbugs.gnu.org (full text, mbox):

From: zimoun <zimon.toutoune <at> gmail.com>
To: 44256 <at> debbugs.gnu.org
Subject: Re: bug#44256: “guix import cran -a
 bioconductor FOO” downloads twice
Date: Thu, 25 Feb 2021 16:28:26 +0100
Hi,

On Tue, 27 Oct 2020 at 14:55, zimoun <zimon.toutoune <at> gmail.com> wrote:

> $ guix import cran -a bioconductor CATALYST
>
> Starting download of /tmp/guix-file.OPtOW1
>>From https://bioconductor.org/packages/release/bioc/src/contrib/CATALYST_1.12.2.tar.gz...
>  …12.2.tar.gz  10.2MiB                567KiB/s 00:18 [##################] 100.0%
>
> Starting download of /tmp/guix-file.V6sC1Z
>>From https://bioconductor.org/packages/release/bioc/src/contrib/CATALYST_1.12.2.tar.gz...
>  …12.2.tar.gz  10.2MiB                565KiB/s 00:19 [##################] 100.0%
>
> I have not investigated more, if the issue is from the importer or from
> the information provided by Bioconductor.

It comes from ’cran->guix-package’ in (guix import cran):

--8<---------------cut here---------------start------------->8---
     (let ((description (fetch-description repo package-name)))
       (if description
           (description->package repo description)
--8<---------------cut here---------------end--------------->8---

where ’fetch-description’ effectively downloads but then
’description->package’ downloads again:

--8<---------------cut here---------------start------------->8---
         (source     (download source-url #:method (cond
                                                    (git? 'git)
                                                    (hg? 'hg)
                                                    (else #f))))
--8<---------------cut here---------------end--------------->8---

This second download is not necessary.  The fix needs some care with the
different repositories.


Cheers,
simon









This bug report was last modified 168 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.