unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: zimoun <zimon.toutoune@gmail.com>
To: 44256@debbugs.gnu.org
Subject: bug#44256: “guix import cran -a bioconductor FOO” downloads twice
Date: Thu, 25 Feb 2021 16:28:26 +0100	[thread overview]
Message-ID: <87sg5kcgkl.fsf@gmail.com> (raw)
In-Reply-To: <865z6v4vuw.fsf@gmail.com> (zimoun's message of "Tue, 27 Oct 2020 14:55:03 +0100")

Hi,

On Tue, 27 Oct 2020 at 14:55, zimoun <zimon.toutoune@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









      reply	other threads:[~2021-03-03 13:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-27 13:55 bug#44256: “guix import cran -a bioconductor FOO” downloads twice zimoun
2021-02-25 15:28 ` zimoun [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sg5kcgkl.fsf@gmail.com \
    --to=zimon.toutoune@gmail.com \
    --cc=44256@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).