unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Newbie: How to download mirror: links with wget?
@ 2023-09-01  6:33 Rodrigo Morales
  2023-09-01  6:45 ` (
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Rodrigo Morales @ 2023-09-01  6:33 UTC (permalink / raw)
  To: help-guix

I suspect there's a bug with the =tracker= package, so I want to
investigate. To proceed, I decided to download the source of the
package (relevant part of the package =tracker= is shown below).

#+BEGIN_SRC elisp
(define-public tracker
  (package
    (name "tracker")
    (version "3.4.2")
    (source (origin
              (method url-fetch)
              (uri (string-append "mirror://gnome/sources/tracker/"
                                  (version-major+minor version) "/"
                                  "tracker-" version ".tar.xz"))
              (sha256
               (base32
#+END_SRC

As you can see above, the url of =source= starts with =mirror=. I
thought that I could download such URL with =wget=. However, it seems
that =wget= cannot do that.

#+HEADER: :prologue "exec 2>&1"
#+HEADER: :epilogue ":"
#+begin_src sh
wget "mirror://gnome/sources/tracker/3.4.2/tracker-3.4.2.tar.xz"
echo $?
#+end_src

#+RESULTS:
#+begin_example
mirror://gnome/sources/tracker/3.4.2/tracker-3.4.2.tar.xz: Unsupported scheme.
1
#+end_example

My question is: How can I download the source of that package using
the same URL that is shown in the package definition (I want to make
sure that I'm downloading the same file that is used by the Guix
package definition).


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-09-01  7:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-01  6:33 Newbie: How to download mirror: links with wget? Rodrigo Morales
2023-09-01  6:45 ` (
2023-09-01  6:53 ` (
2023-09-01  7:06 ` Wojtek Kosior via

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).