<feed xmlns='http://www.w3.org/2005/Atom'>
<title>guix.git/tests/guix-download.sh, branch master</title>
<subtitle>Personal branch of https://git.savannah.gnu.org/cgit/guix.git/ for implementing 'guix deploy'.
</subtitle>
<id>https://git.jakob.space/guix.git/atom?h=master</id>
<link rel='self' href='https://git.jakob.space/guix.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/'/>
<updated>2017-08-20T12:55:45Z</updated>
<entry>
<title>guix download: Support retrieving local file without the URI scheme.</title>
<updated>2017-08-20T12:55:45Z</updated>
<author>
<name>宋文武</name>
<email>iyzsong@member.fsf.org</email>
</author>
<published>2017-08-19T12:41:44Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/commit/?id=a02967d77af03d6468e25d6e26dbea0db919ce96'/>
<id>urn:sha1:a02967d77af03d6468e25d6e26dbea0db919ce96</id>
<content type='text'>
* guix/scripts/download.scm (guix-download): Treat the URL argument as a local
file path when it fails on 'string-&gt;uri'.  Call 'fetch' with the processed
'uri' instead of the original URL argument.
* tests/guix-download.sh: Adjust accordingly.
</content>
</entry>
<entry>
<title>guix download: Add '-o' option.</title>
<updated>2016-11-16T17:00:41Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2016-10-28T23:16:24Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/commit/?id=1bcc87bb685b7985512add221f10e4cb58b5f6f7'/>
<id>urn:sha1:1bcc87bb685b7985512add221f10e4cb58b5f6f7</id>
<content type='text'>
* guix/scripts/download.scm (download-to-file, download-to-store*): New
procedures.
(%default-options): Add 'download-proc'.
(show-help): Adjust description and document '-o'.
(%options): Add '-o'.
(guix-download): Remove 'store' variable.  Add 'fetch' and define 'path'
to as its result.
* tests/guix-download.sh: Add test.
</content>
</entry>
<entry>
<title>guix download: Fail when more than one URL is passed.</title>
<updated>2015-11-23T16:48:35Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2015-11-23T16:37:29Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/commit/?id=86cdfc451bad61faa66f100208c95f3275050957'/>
<id>urn:sha1:86cdfc451bad61faa66f100208c95f3275050957</id>
<content type='text'>
* guix/scripts/download.scm (guix-download)[parse-option]: Call 'leave'
when passed an extra argument.
* tests/guix-download.sh: Add test.
</content>
</entry>
<entry>
<title>Replace individual scripts with master 'guix' script.</title>
<updated>2013-02-17T03:17:37Z</updated>
<author>
<name>Mark H Weaver</name>
<email>mhw@netris.org</email>
</author>
<published>2013-02-14T09:15:25Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/commit/?id=e49951eb3e1e1a8e7bad6d7471483e70b0865352'/>
<id>urn:sha1:e49951eb3e1e1a8e7bad6d7471483e70b0865352</id>
<content type='text'>
* scripts/guix.in: New script.

* Makefile.am (bin_SCRIPTS): Add 'scripts/guix'.  Remove 'guix-build',
  'guix-download', 'guix-import', 'guix-package', and 'guix-gc'.

  (MODULES): Add 'guix/scripts/build.scm', 'guix/scripts/download.scm',
  'guix/scripts/import.scm', 'guix/scripts/package.scm', and
  'guix/scripts/gc.scm'.

* configure.ac (AC_CONFIG_FILES): Add 'scripts/guix'.  Remove 'guix-build',
  'guix-download', 'guix-import', 'guix-package', and 'guix-gc'.

* guix-build.in, guix-download.in, guix-gc.in, guix-import.in,
  guix-package.in: Remove shell script boilerplate.  Move to guix-COMMAND.in
  to guix/scripts/COMMAND.scm.  Rename module from (guix-COMMAND) to
  (guix scripts COMMAND).  Change "guix-COMMAND" to "guix COMMAND" in
  usage help string.

* pre-inst-env.in: Add "@abs_top_builddir@/scripts" to the front of $PATH.
  Export $GUIX_UNINSTALLED.

* tests/guix-build.sh, tests/guix-daemon.sh, tests/guix-download.sh,
  tests/guix-gc.sh, tests/guix-package.sh: Use "guix COMMAND" instead of
  "guix-COMMAND".

* doc/guix.texi: Replace all occurrences of "guix-COMMAND" with
  "guix COMMAND".

* po/POTFILES.in: Update.
</content>
</entry>
<entry>
<title>Update license headers.</title>
<updated>2013-01-05T23:47:50Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2013-01-05T23:47:50Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/commit/?id=233e76769ae3a438bff7117c68f2c88739a28db0'/>
<id>urn:sha1:233e76769ae3a438bff7117c68f2c88739a28db0</id>
<content type='text'>
Change all license headers, except guix/build/* and ld-wrapper.scm, with
this code:

  (use-modules (guix build utils)
	       (srfi srfi-1))

  (fluid-set! %default-port-encoding "UTF-8")

  (substitute* (remove (lambda (f)
			 (or (string-contains f ".tar.")
			     (string-contains f ".git/")
			     (string-contains f ".so")
			     (string-suffix? ".o" f)
			     (string-suffix? ".a" f)
			     (string-suffix? ".go" f)
			     (string-suffix? ".pdf" f)
			     (string-suffix? ".png" f)
			     (string-suffix? ".info" f)
			     (equal? (basename f) "guix-daemon")
			     (equal? (basename f) "nix-setuid-helper")
			     (string-contains f "nix-upstream/")
			     (string-contains f "distro/packages/bootstrap/")))
		       (find-files "." "\\.[a-z]+$"))
    (("^([[:graph:]]+) This file is part of Guix." _ comment-start)
     (string-append comment-start " This file is part of GNU Guix."))
    (("^([[:graph:]]+) Guix --- Nix package management.*" _ comment-start)
     (string-append comment-start
		    " GNU Guix --- Functional package management for GNU\n"))
    (("^([[:graph:]]+) Guix is " _ comment-start)
     (string-append comment-start " GNU Guix is "))
    (("^([[:graph:]]+) along with Guix." _ comment-start)
     (string-append comment-start " along with GNU Guix."))
    (("^([[:graph:]]+) Copyright \\(C\\)" _ comment-start)
     (string-append comment-start " Copyright ©")))

Change headers using C-style comments manually.
</content>
</entry>
<entry>
<title>guix-download: Use code from (guix build download).</title>
<updated>2012-11-13T22:04:21Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2012-11-13T21:57:36Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/commit/?id=ec4d308a9e306e8784c324a2f8511e27c50f9dff'/>
<id>urn:sha1:ec4d308a9e306e8784c324a2f8511e27c50f9dff</id>
<content type='text'>
* guix-download.in (http-fetch, ftp-fetch): Remove.
  (fetch-and-store): Replace `uri' parameter with `name', for the output
  file name.  Redirect the output of `fetch' to the error port.
  (guix-download): Call `url-fetch' for all URI schemes except `file'.
  Handle PATH equal to #f.
* guix/download.scm: Export `%mirrors'.
* tests/guix-download.sh: Change erroneous URL, because URLs at
  example.com are all valid redirections.
</content>
</entry>
<entry>
<title>guix-download: Add support for file:// URIs.</title>
<updated>2012-11-13T21:58:43Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2012-11-13T21:57:50Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/commit/?id=352ec143de32e751286590ff51c40f5a32c7fa87'/>
<id>urn:sha1:352ec143de32e751286590ff51c40f5a32c7fa87</id>
<content type='text'>
* guix-download.in (fetch-and-store): New procedure.
  (guix-download): Use it to compute PATH.  Call `add-to-store' when
  a `file' URI scheme is used.
* Makefile.am (AM_TESTS_ENVIRONMENT): New variable.
* tests/guix-download.sh: Add test.
</content>
</entry>
<entry>
<title>guix-download: Gracefully handle invalid URIs.</title>
<updated>2012-11-13T21:15:59Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2012-11-13T21:13:11Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/commit/?id=ecdb81e159a29c92351bc51c3556a760074f7473'/>
<id>urn:sha1:ecdb81e159a29c92351bc51c3556a760074f7473</id>
<content type='text'>
* guix-download.in (guix-download): Error out when `string-&gt;uri'
  returns #f.  Use `leave' when the scheme is unknown.
* tests/guix-download.sh: Add tests.
</content>
</entry>
<entry>
<title>guix-download: Error out when the HTTP response code is not 200.</title>
<updated>2012-11-07T23:13:25Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2012-11-07T23:13:25Z</published>
<link rel='alternate' type='text/html' href='https://git.jakob.space/guix.git/commit/?id=37d19403e78e8dfab24a471bee7c8ee17346e43c'/>
<id>urn:sha1:37d19403e78e8dfab24a471bee7c8ee17346e43c</id>
<content type='text'>
* guix-download.in (http-fetch): Leave with an error message when
  RESPONSE's code is not 200.

* tests/guix-download.sh: New file.
* Makefile.am (TESTS): Add it.
</content>
</entry>
</feed>
